Skip to content

Instantly share code, notes, and snippets.

@jellea
Last active August 29, 2015 14:02
Show Gist options
  • Save jellea/44fa0c7ce65ec77e84ac to your computer and use it in GitHub Desktop.
Save jellea/44fa0c7ce65ec77e84ac to your computer and use it in GitHub Desktop.
(defn draw-matrix [grid]
(for [x (range (count grid))]
(for [y (range (count (-> grid x :seq)))]
(button x y))))
@TN1ck
Copy link

TN1ck commented Jun 17, 2014

couldn't you do this as well?

(defn draw-matrix [grid]
  (for [x (range (count grid)) y (range (count (-> grid x :seq)))]
      (button x y))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment