Skip to content

Instantly share code, notes, and snippets.

@stathissideris
Forked from llasram/mapify.clj
Last active August 29, 2015 14:13
Show Gist options
  • Save stathissideris/be2201ecff7cb42a328e to your computer and use it in GitHub Desktop.
Save stathissideris/be2201ecff7cb42a328e to your computer and use it in GitHub Desktop.
(defn mapify
"Return a seq of maps like {:name \"Edward Cullen\" :glitter-index 10}"
[rows]
(let [headers (map (comp conversions headers->keywords) (first rows))]
(for [row (rest rows)] (zipmap headers row))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment