[alexandria-devel] #'shuffle docstring is misleading
#'shuffle docstring states that “Permuted sequence may share storage with the original one.” Actually it destructively modifies the sequence. In the case of vectors the two might be the same, but in the case of lists I would say that something like (sort (copy-list l) …) shares storage with the original list but (sort l …) does more than that.
On 19 March 2012 14:37, Orivej Desh <orivej@gmx.fr> wrote:
#'shuffle docstring states that “Permuted sequence may share storage with the original one.” Actually it destructively modifies the sequence. In the case of vectors the two might be the same, but in the case of lists I would say that something like (sort (copy-list l) …) shares storage with the original list but (sort l …) does more than that.
Fixed, thanks for the heads-up. Cheers, -- nikodemus
participants (2)
-
Nikodemus Siivola
-
Orivej Desh