Create a map from two seqs

2011-01-17 Thread Stuart Popejoy
Greetings, Apologies if this seems like a pointless question but a) searches were fruitless and b) hopefully this is interesting to consider ... I'm wanting to create a map from two seqs (:keys and values), and it seems surprisingly tricky. I would rather not use hash-map, but if I did

Re: Create a map from two seqs

2011-01-17 Thread Sam Aaron
but a) searches were fruitless and b) hopefully this is interesting to consider ... I'm wanting to create a map from two seqs (:keys and values), and it seems surprisingly tricky. I would rather not use hash-map, but if I did the following would suffice: = (apply hash-map (apply concat (map

Re: Create a map from two seqs

2011-01-17 Thread Michael Ossareh
On Mon, Jan 17, 2011 at 10:14, Sam Aaron samaa...@gmail.com wrote: There are a lot of handy functions like this in core but you really need to know they exist before you can use them. Discovering new ones is always exciting! I've found lurking in #clojure on irc to be a great way to find out