[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SORT
- To: (BUG LISP) at MIT-MC
- Subject: SORT
- From: EAK at MIT-MC (Earl A. Killian)
- Date: Wed, 3 May 78 04:28:00 GMT
- Original-date: 3 MAY 1978 0028-EDT
Is it still true that SORT can't sort number arrays? This seems losing.
Also to be useful it seems to be that SORT should take an optional third
argument which is the exchange operator. E.g. (SORT 'A '> (FUNCTION
(LAMBDA (X Y) (STORE (A X) (PROG2 0 (A Y) (STORE (A Y) (A X))))))) would
be equivalent to (SORT 'A '>). This would allow you to sort two or three
arrays on the on the ordering of just one of the arrays. Maybe you can
think of a better mechansim for this.