(sort '("zyzzyva" "zyzzyvas") #'string<)
For Clisp:
>> ("zyzzyva" "zyzzyvas")
For SBCL:
>> ??
For CMUCL:
>> ??
For Allegro:
>> ??
Thanks guys!
Mike
GNU CLISP 2.41 (2006-10-13) (Win32):
[1]> (sort '("zyzzyva" "zyzzyvas") #'string<)
("zyzzyva" "zyzzyvas")
Lispworks 5.0.2 (Win32):
CL-USER 1 > (sort '("zyzzyva" "zyzzyvas") #'string<)
("zyzzyva" "zyzzyvas")
> I want to get the results for the following for each version of common
> lisp
>
> (sort '("zyzzyva" "zyzzyvas") #'string<)
>
I see you wrote this before Ranier mentioned that you shouldn't sort a
constant. The expression should be:
(sort (list "zyzzyva" "zyzzyvas") #'string<)
>I want to get the results for the following for each version of common
>lisp
>
>(sort '("zyzzyva" "zyzzyvas") #'string<)
>
>
>For Clisp:
>>> ("zyzzyva" "zyzzyvas")
>
Don't worry, every other Common Lisp will return the same thing.
--
|Don't believe this - you're not worthless ,gr---------.ru
|It's us against millions and we can't take them all... | ue il |
|But we can take them on! | @ma |
| (A Wilhelm Scream - The Rip) |______________|
> I want to get the results for the following for each version of common
> lisp
>
> (sort '("zyzzyva" "zyzzyvas") #'string<)
Why?
Are you trying to test conformance with the standard?
The correct behavior (modulo not modifying a constant) is mandated by
the ANSI standard.
--
Thomas A. Russ, USC/Information Sciences Institute