gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Re: sort function


From: Camm Maguire
Subject: [Gcl-devel] Re: sort function
Date: 02 Jan 2004 14:57:17 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

The following message is a courtesy copy of an article
that has been posted to comp.lang.lisp as well.

Greetings!  I cannot reprodice this under current stable GCL on unix:

$ gcl
GCL (GNU Common Lisp)  (2.6.1) Wed Dec 31 15:36:01 UTC 2003
Licensed under GNU Library General Public License
Dedicated to the memory of W. Schelter

Use (help) to get some basic information on how to use GCL.

>(sort '((9 a) (3 b) (4 c)) #'(lambda (x y) (< (car x) (car y))))

((3 B) (4 C) (9 A))


Please post your version and where you got it, together with input and
output to address@hidden if problems persist.  It is possible this
message won't propagate to usenet due to my conection.  If this is the
case, kindly forward it there for me.

Take care,


On Fri, 2 Jan 2004 14:49:31 -0000, Steve Ellis wrote:
> Hi again 
> thanks for the help, i understand it all alot better now. The only thing now
> thats wrong is that the example Adam gave to sort the list works perfectly
> in lispworks on windows but when i try it in GCL under unix i get an error
> saying lambda is undefined.

[Gemini:dseaman] $ clisp -q

[1]> (sort '((9 a) (3 b) (4 c)) #'(lambda (x y) (< (car x) (car y))))
((3 B) (4 C) (9 A))
[2]> 



-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]