On Wed, Nov 23, 2011 at 9:48 PM, Alan Malloy <a...@malloys.org> wrote: > Other way round. It behaves like a keyword, looking itself up in a > map: > ('x '{x 1 y 2}) yields 2. You see the same behavior with (reduce :and > [5 10]), yielding 10.
Ah... I didn't realize that the lookup could be done without an exception on non-collections! (:a 1 2) yields 2 which surprises me a bit... I'd expect an error because 1 is not a collection that :a can look itself up in. Learn something new every day! :) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- 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