Re: How can I sort symbols in alphabetical order?
- From: Lars Brinkhoff <lars.spam@xxxxxxxxxx>
- Date: Tue, 29 Nov 2005 14:53:11 +0100
"Mattias Nilsson" <mattiasn@xxxxxxxxxxxx> writes:
> (sort '(car window apple) #'string< :key #'symbol-name)
grue@xxxxxxx (Timofei Shatrov) writes:
> (sort '(car window apple)
> (lambda (x y) (string< (symbol-name x) (symbol-name y))))
Note that sort is advertised as a destructive function, and you pass
it a quoted object.
.
- Follow-Ups:
- Re: How can I sort symbols in alphabetical order?
- From: Mattias Nilsson
- Re: How can I sort symbols in alphabetical order?
- References:
- How can I sort symbols in alphabetical order?
- From: Kubilay
- Re: How can I sort symbols in alphabetical order?
- From: Mattias Nilsson
- How can I sort symbols in alphabetical order?
- Prev by Date: Re: Match Error on Dialog Box
- Next by Date: Re: sanity check (coding style)
- Previous by thread: Re: How can I sort symbols in alphabetical order?
- Next by thread: Re: How can I sort symbols in alphabetical order?
- Index(es):
Relevant Pages
|
|