On 1 May 2012 07:22, Alan Malloy <a...@malloys.org> wrote:
> On Apr 30, 7:53 pm, kurtharriger <kurtharri...@gmail.com> wrote:
>> Sounds good. Ill submit a patch for walk. Im not real sure why apply 
>> hash-map didnt work, but if figure it out Ill add that too.
>
> For the same reason that (apply hash-map {1 2, 3 4}) doesn't work: the
> maps seqs as ([1 2] [3 4]), not as (1 2 3 4).

And because of that, into would work:

user> (into {} (doto (java.util.LinkedHashMap.) (.put :foo 1) (.put :bar 2)))
{:foo 1, :bar 2}

M.

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