Re: Please check this bit of Lisp (how ugly is my code?)
- From: Geoffrey Summerhayes <sumrnot@xxxxxxxxx>
- Date: 28 May 2007 19:42:10 -0700
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
.
- References:
- Please check this bit of Lisp (how ugly is my code?)
- From: Marcos Nunes
- Re: Please check this bit of Lisp (how ugly is my code?)
- From: Geoffrey Summerhayes
- Re: Please check this bit of Lisp (how ugly is my code?)
- From: John Thingstad
- Please check this bit of Lisp (how ugly is my code?)
- Prev by Date: Re: Please check this bit of Lisp (how ugly is my code?)
- Next by Date: Re: FSet/CL 1.0 released!
- Previous by thread: Re: Please check this bit of Lisp (how ugly is my code?)
- Next by thread: Re: Please check this bit of Lisp (how ugly is my code?)
- Index(es):