Hi,

I looked for a version of (get map key) that would supply a default 
value if the key was not present in the map. I was surprised to see (by 
looking at the "Data Structure" documentation page, 
<http://clojure.org/data_structures>) that there was none.

However, I also did this:

user=> (doc get)
-------------------------
clojure.core/get
([map key] [map key not-found])
  Returns the value mapped to key, not-found or nil if key not present.


So what I want and expected is there, just not in the Web documentation.


Randall Schulz

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