Hello everybody,
I really like the &env. It has saved a lot of tedious work a couple of times
.. but I have only found use for the keys of the map that gets passed like
in the following example.
(defmacro display-local-bindings []
`(do ~@(map (fn [x#] (list 'println [`'~x# x#])) (keys &env))))
(let [x 10
y 20]
(display-local-bindings))
would print
[x 10]
[y 20]
I don't understand what the val part of the map contains? I have failed at
attempts to figuring it out.. Can somebody tell me what the val part
contains and how one could use it?
Thanks,
Sunil.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
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