Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defn render-board
[board suggestions interactions]
(into
(empty-svg-board)
(for [[position cell] (board/to-seq board)]
^{:key position}
(if (= :none cell)
[empty-cell position interactions (if (suggestions position) :help :none)]
[rect-cell position cell]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment