On Mon, Dec 6, 2010 at 21:01, Alex Baranosky
alexander.barano...@gmail.comwrote:
Way I have [:a 1:b 2] and I want to convert it to {:a 1 :b 2}
Minor quibble - [] is a Vector not a list. List is ().
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To
Way I have [:a 1:b 2] and I want to convert it to {:a 1 :b 2}
What's the idiomatic way to do this in Clojure?
Thanks for the help,
Alex
--
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
On Tue, Dec 7, 2010 at 10:31 AM, Alex Baranosky
alexander.barano...@gmail.com wrote:
Way I have
(apply hash-map [:a 1:b 2])
and I want to convert it to {:a 1 :b 2}
What's the idiomatic way to do this in Clojure?
Thanks for the help,
Alex
--
You received this message because
ah, I had tried hash-map without apply, but yours actually works. :)
Thanks.
On Tue, Dec 7, 2010 at 12:06 AM, Sunil S Nandihalli
sunil.nandiha...@gmail.com wrote:
On Tue, Dec 7, 2010 at 10:31 AM, Alex Baranosky
alexander.barano...@gmail.com wrote:
Way I have
(apply hash-map [:a