Re: easiest way to make a map out of a list?

2010-12-08 Thread Michael Ossareh
On Mon, Dec 6, 2010 at 21:01, Alex Baranosky wrote: > 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 post to this group, send e

Re: easiest way to make a map out of a list?

2010-12-06 Thread Alex Baranosky
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 > > > > >> (ap

Re: easiest way to make a map out of a list?

2010-12-06 Thread Sunil S Nandihalli
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 messag

easiest way to make a map out of a list?

2010-12-06 Thread Alex Baranosky
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 Not