Re: the sort function in lisp (destructive)
- From: "John Thingstad" <jpthing@xxxxxxxxx>
- Date: Sun, 06 Jan 2008 17:55:03 +0100
På Sun, 06 Jan 2008 17:38:04 +0100, skrev Rainer Joswig <joswig@xxxxxxx>:
Another alternative would be a SORT that does not reorder the CONS cells,
but the CARs of the CONS cells. SORT the list into another
data structure and then set the list's CARs from there.
Though even that would not be that useful.
In fact looking at the source for Corman Lisp I discovered that it reads the CAR into a vector, sorts that, and then puts the values back in the CAR's in sorted order.
--------------
John Thingstad
.
- References:
- Re: the sort function in lisp (destructive)
- From: Alex Mizrahi
- Re: the sort function in lisp (destructive)
- From: Rainer Joswig
- Re: the sort function in lisp (destructive)
- Prev by Date: Re: About differences between #: and : in defpackage
- Next by Date: Re: the sort function in lisp (destructive)
- Previous by thread: Re: the sort function in lisp (destructive)
- Next by thread: Re: the sort function in lisp (destructive)
- Index(es):
Relevant Pages
|