[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort needs a #:key argument
From: |
Ludovic Courtès |
Subject: |
Re: sort needs a #:key argument |
Date: |
Tue, 20 Oct 2009 10:38:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hello,
Andy Wingo <address@hidden> writes:
> (sort '((a . 1) (b . -2) (c . 3)) < cdr)
> => ((b . -2) (a . 1) (c . 3))
FWIW I find:
(sort '((a . 1) (b . -2) (c . 3))
(lambda (x y)
(< (cdr x) (cdr y))))
more in the spirit of not “piling feature on top of feature”.
Thanks,
Ludo’.