Try these in a REPL

user=> (ns-map *ns*)

user=> (keys (ns-map *ns*))

user=> (vals (ns-map *ns*))

user=> (map meta (vals (ns-map *ns*)))

user=> (ns proof)

proof=> (defn ^:my-x-comp func1 [] (prn "func1 executed"))

proof=> (filter #(:my-x-comp (meta %)) (vals (ns-map *ns*)))

proof=> ((first (filter #(:my-x-comp (meta %)) (vals (ns-map *ns*)))))

not sure this is the right way, just an experiment with REPL.

(I chose the wrong reply option and send this only to you, Jace, this 
morning. Sorry.)

Luca


> Out of curiousity, where do the defs go? Could one iterate over all the 
> vars in the runtime environment? Would I just get pointers to native code?
>
>

-- 
-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to