ns-publics already calls 'the-ns' on its arg, and 'for' is handy for
destructuring.

(defn ns-var-metas [ns-name]
  (into {} (for [[n v] (ns-publics ns-name)] [n ^v])))

Both 'into' and 'apply conj' allow you to specify nil instead of a
pair if you wanted conditionally exclude a key.

--Chouser

--~--~---------~--~----~------------~-------~--~----~
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