They are not currently exposed, but a trivial patch will achieve what
you want:
http://groups.google.com/group/clojure/web/struct.patch

user=> (defstruct ts :a :b)
#'user/ts
user=> (struct-keys ts)
(:a :b)

Regards,
Tim.


On Mar 12, 5:23 am, jim <jim.d...@gmail.com> wrote:
> Is there a more efficient way of getting the keys of a struct-map
> besides creating an instance and passing it to keys:
>
> >(def ts (create-struct :a :b))
> >(keys (struct ts))
>
> (:a :b)
>
> Thanks,
> Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to