On Jun 25, 2013, at 15:03 , Michael-Keith Bernard (SegFaultAX) <mkbernard....@gmail.com> wrote:
> https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/APersistentMap.java#L24 > > The implementation assumes you're attempting to conj one of the following 3 > things into the hash map: > • A MapEntry object > • A vector of the format [key value] > • A seq of MapEntry objects (commonly created via > http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html#entrySet() > and the like) If I read you correctly, you're saying the reason 'into et al. can't accept arbitrary two-element collections for adding to a map is that APersistentMap's .cons method does something special with seqable things that aren't vectors. Right? Any insight into why Rich would have written .cons that way, instead of putting that seq-of-MapEntry functionality into a separate method? -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.