There are no circumstances where representing a fixed size 2d structure as a list-of-lists makes sense, but you can use NTH for random-access into lists. For my sudoku solver I use 2D arrays of a "square" class that contains its coordinates (because they also get put in other data structu...
Thanks guys. That was a silly mistake 8-) I've come across a slightly tricky problem. Say I have the following parameter which represents a connect 4 board: (defparameter *board* '((nil nil nil nil nil nil) (nil nil nil nil nil nil) (nil nil nil nil nil nil) (nil nil nil nil nil nil) (nil nil nil ni...
Hi everyone, So I've been playing around with LISP lately in order to develop an appreciation for functional programming. Now I've come into a problem I can't solve. Here is the scenario. I want to write a function that takes two lists - both lists contain words. The idea is for the function to outp...