On Dec 10, 12:07 pm, "Michael Wood" <[EMAIL PROTECTED]> wrote:
> OK, I think I know why this happens.  It's treating the '+ as the key
> for a map, and using the second integer as the default value.  I'm not
> sure why it treats an integer as a map, though:
>

Wow, that's a bit of a gotcha.  It's not treating the integer as a map
though, get's default behavior is to return nil if the thing it's get-
ing from isn't some kind of collection.  (Which is also a bit of a
gotcha, I think.)

user> ('a (fn []))
nil
user> ('a (Object.))
nil
--~--~---------~--~----~------------~-------~--~----~
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