[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MCL 2.0b1p3 sort problems
- To: ahamid@clarity.Princeton.edu, info-mcl@cambridge.apple.com, ranson@lannion.cnet.fr
- Subject: Re: MCL 2.0b1p3 sort problems
- From: William.Woods@East.Sun.COM (Bill Woods - Sun BOS)
- Date: Thu, 11 Jul 91 09:24:16 EDT
The Interlisp system did destructive sort the way you expected it.
This is possible if the sort routine holds onto what was the first cell in the
list and then puts the car and cdr of the resulting sorted list into that cell.
It would be nice if that were what the standard required. If lisp won't give
it to you, then you'll have to do your own resetting of foo:
(setq foo (sort foo #'>))
Bill Woods
Sun Microsystems Laboratories
----- Begin Included Message -----