I want to get the results for the following for each version of common
lisp
(sort '("zyzzyva" "zyzzyvas") #'string<)
For Clisp:
>> ("zyzzyva" "zyzzyvas")
For SBCL:
>> ??
For CMUCL:
>> ??
For Allegro:
>> ??
Thanks guys!
Mike
skibud2 <·············@gmail.com> wrote:
> 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<)
>
> For Clisp:
> >> ("zyzzyva" "zyzzyvas")
>
> For SBCL:
> >> ??
("zyzzyva" "zyzzyvas")
>
> For CMUCL:
> >> ??
>
> For Allegro:
> >> ??
>
> Thanks guys!
>
> Mike
On Mon, 08 Oct 2007 20:57:42 -0000, skibud2 <·············@gmail.com> tried to
confuse everyone with this message:
>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) |______________|
skibud2 <·············@gmail.com> writes:
> 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