Skip to content

Instantly share code, notes, and snippets.

@ponzao
Created November 14, 2013 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponzao/7474050 to your computer and use it in GitHub Desktop.
Save ponzao/7474050 to your computer and use it in GitHub Desktop.
(defn map-matrix
[f colls]
(vec (map-indexed (fn [y row]
(vec (map-indexed (fn [x value]
(f value x y))
row)))
colls)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment