bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#18837: 25.0.50; `sort` -- modify function to preserve original list.


From: Stefan Monnier
Subject: bug#18837: 25.0.50; `sort` -- modify function to preserve original list.
Date: Sat, 25 Oct 2014 22:44:45 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> The doc-string for the function `sort` states that `SEQ is modified by
> side effects`; however, it does not state in what way the original
> list gets modified or why such a feature might somehow be useful.

The "usefulness" is to avoid allocating another list in the case where
the unsorted list won't be used later on anyway.


        Stefan





reply via email to

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