Re: Please check this bit of Lisp (how ugly is my code?)



On May 28, 7:10 pm, "John Thingstad" <john.things...@xxxxxxxxx> wrote:
On Mon, 28 May 2007 19:18:35 +0200, Geoffrey Summerhayes

Why not replace
(lines (apply #'mapcar (lambda (&rest rest)(reverse rest)) board)

with the simpler
(lines (mapcar (lambda (col) (reverse col)) board)

No, you missed it.

Test the transforms with '((1 2 3)(4 5 6)(7 8 9))

----
Geoff

.