It looks like your (:foo d) is a symbol.  ((:foo d) 4 5) is trying to look 
itself up as a key in the map you provided, which is 4. Since that's not a 
map, the lookup fails and it returns the default value you provided: 5. 
 It's very forgiving that way :)

As for your main question, about how to serialize functions, someone else 
will have to answer - as far as I know, you just can't do that.

- Chris

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

Reply via email to