Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created June 9, 2011 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save swannodette/1016088 to your computer and use it in GitHub Desktop.
Save swannodette/1016088 to your computer and use it in GitHub Desktop.
example2.clj
(defn do-something [lol fields]
(->> [lol fields]
(apply map (fn [l field]
(map vector l (repeat field))))
(apply map (fn [& args]
(into {} args)))))
(do-something [[1 2 3] [4 5 6]] [:a :b])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment