My take on this. I know it's convoluted, I know this is probably not
the best and not even a good-enough solution, but it's what I have so
far (needless to say, I'd welcome comments on my code :)

(defn explode [ [k vals ] ] (map #(vector key %) vals))
(defn update-map [ m ] (partial apply assoc m))

user> (map (update-map {}) (apply map into (map explode [[:head [1 2
3]] [:tail [:a :b :c]]])))
({:tail :a, :head 1} {:tail :b, :head 2} {:tail :c, :head 3})

Cheers,

U

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