Arc Forumnew | comments | leaders | submitlogin
2 points by jsgrahamus 3148 days ago | link | parent

Thanks. Quite the learning experience for me.


1 point by akkartik 3148 days ago | link

Oh, I missed a question.

curr in conflicts contains the first or most recently added queen. So in this line I'm 'unpacking' the list of queens into the first and the rest.

  (let (curr . rest)  queens
    ..)
Try it out for yourself at the arc prompt. Compare these two:

  (let (a b) '(1 2 3) b)
  (let (a . b) '(1 2 3) b)

-----