On Oct 8, 1:17 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> It conflicts with the default value capability of get:
>
> ({:a 1 :b 2} :c 5)
>
> -> 5

Ah, this I didn't know. I've been using (or (map key) default) when I
could have been writing (map key default).

I guess that means that calling a hash-map as a function is exactly
the same as calling (get map ...).

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