Right, a collection can implement cons however it likes.  While it's 
convenient, I was just curious about the 'why' of APersistentMap's 
implementation, esp. since it overlaps w/ `merge`.

- Chas

On Nov 9, 2011, at 8:28 AM, Stuart Sierra wrote:

> It may relate to the implementation of IPersistentCollection.cons(Object). 
> 
> As far as I know, the IPersistentCollection.cons(Object) method powers the 
> polymorphic behavior of the `conj` function, and is the foundation for the 
> persistent collections in general.
> 
> -S
> 
> -- 
> 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

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