On Sun, Nov 15, 2009 at 09:43:38PM +0100, B Smith-Mannschott wrote:
>On Sun, Oct 11, 2009 at 22:12, Matt Wilson <m...@problemattic.net> wrote:

>> The only hassle with a map is that iterating over it (in my case, with
>> a `for`) turns it into a list of [key value], which makes it a pain to
>> turn back into a map once you're done. The magical incantation for
>> round-tripping turns out to be:
>>
>> (apply hash-map (apply concat seq-of-pairs))

Why not just

   (into {} seq-of-pairs)

David

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