i want to create a list of pairs, and can build the list best as a series of pairs of pairs:
(for [ni (range n)
di (range d)]
(let [j1 (mod (inc di) n)
j2 (mod (- n (inc di)) n) ]
(conj [] [ni j1] [ni j2]) ))
this gets me close:
([[0 1] [0 9]] [[0 2] [0 8]] [[1 1] [1 9]]...
but is adding an extra level of brackets. what i want would look like this:
([0 1] [0 9] [0 2] [0 8] [1 1] [1 9] ...
I am confident there is a simple solution for this but I can't figure out what it!?