On Dec 1, 10:19 am, Randall R Schulz <[EMAIL PROTECTED]> wrote:
> 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.

It's correct on the API page, which is the only section generated from
the source, so a better reference for details:

http://clojure.org/api#get

At some point when I get some time, I'll remove those inline
definitions from the prose sections to avoid discrepancies and doc-
rot.

Rich

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