anonymous / gist:4268803
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Get 3x3 (sub)squares from a sudoku board

View gist:4268803
1 2 3 4 5
(defn get-squares [cells]
(let [p (partition 3 cells)
q (for [x [0 1 2]] (drop x p))]
r (map #(take-nth 3 %) q)
(partition 9 (flatten r))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.