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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to