On Tue, Sep 26, 2000 at 02:06:47PM -0400, John Porter wrote:
> > Since when do parentheses make things less readable?
>
> Can you say "lisp"?
"lisp".
(defun Schwartzian (func list)
(mapcar
(lambda (x) (car x))
(sort
(mapcar
(lambda (x) (cons x (funcall func x)))
list
)
(lambda (x y) (< (cdr x) (cdr y)))
)
)
)
Maybe you'd prefer this:
defun Schwartzian func list mapcar lambda x car x sort mapcar
lambda x cons x funcall func x list lambda x y < cdr x cdr y
I know which I'd rather read.
--
God gave man two ears and one tongue so that we listen twice as much as
we speak.
-- Arab proverb
- perl6storm #0010: kill all defaults Philip Newton
- perl6storm #0011: interactive perl mode Philip Newton
- Re: perl6storm #0011: interactive perl mode Russ Allbery
- Re: PERL6STORM - tchrist's brainstorm list for perl6 Philip Newton
- perl6storm #0050 Philip Newton
- Re: perl6storm #0050 raptor
- Re: perl6storm #0050 Dave Storrs
- Re: perl6storm #0050 Johan Vromans
- Re: perl6storm #0050 John Porter
- Re: perl6storm #0050 Simon Cozens
- Re: perl6storm #0050 Robert Mathews
- Re: perl6storm #0050 Simon Cozens
- Re: perl6storm #0050 Piers Cawley
- Re: perl6storm #0050 Simon Cozens
- Re: perl6storm #0050 Piers Cawley
- Re: perl6storm #0050 John Porter
- Re: perl6storm #0050 John Porter
- Re: perl6storm #0050 Simon Cozens
- Re: perl6storm #0050 John Porter
- Re: perl6storm #0050 Buddha Buck
