Thats what I came up with this. (defn getpairs [[key coll]] ;; split the key form the data (http:// blog.jayfields.com/2010/07/clojure-destructuring.html) (map (fn [x] [key x]) coll)) ;;put the key in front of every element in data
(defn d-map [& colls] (mapcat getpairs colls)) ;;mapcat is just connecting the diffrenct return values. (concat (map getpairs coll)) -- 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