[Top][All Lists]

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

Re: Side effects of `sort'

From: Stefan Monnier
Subject: Re: Side effects of `sort'
Date: Thu, 01 Mar 2012 17:25:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

> Lisp doesn't really have access to "the input list" in any real sense:
>    (sort (identity x))
> do you expect x to be rebound?

It doesn't hav access to `x' but it has access to the list, obviously.
If the input is nil, the output is nil, and if the input is a cons, the
output could be the same cons.    It just means that `sort' would have
to fiddle not only with `cdr's but also with the `car's.
Not worth the trouble, tho.


reply via email to

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