My compiler is throwing up a style error when compiling the make-city-
edges function (listed on page 139).
It is complaining that the x variable in the lambda function is never
being called.
I can see why the x variable is not being used (we are just randomly
deciding which items should stay in the list and which should not)
What I was wondering was whether there was a "cleaner" way to write
the function so that no style errors were brought up by the compiler
code:
(defun make-city-edges ()
(let* ((nodes (loop for i from 1 to *node-num*
collect i))
(edge-list (connect-all-islands nodes (make-edge-list)))
(cops (remove-if-not (lambda (x)
(zerop (random *cop-odds*)))
edge-list)))
(add-cops (edges-to-alist edge-list) cops )))