Skip to content

Instantly share code, notes, and snippets.

@llasram
Forked from kindlychung/mapify.clj
Last active August 29, 2015 14:13
Show Gist options
  • Save llasram/a94f85ac31b5ad8c1d5c to your computer and use it in GitHub Desktop.
Save llasram/a94f85ac31b5ad8c1d5c 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))]
(map (partial zipmap headers) (rest rows))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment