common-lisp.net
/
projects/alexandria/alexandria.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4119ce8
)
clarify SHUFFLE docstring
author
Nikodemus Siivola
<nikodemus@random-state.net>
Fri, 30 Mar 2012 15:05:35 +0000 (18:05 +0300)
committer
Nikodemus Siivola
<nikodemus@random-state.net>
Fri, 30 Mar 2012 15:05:35 +0000 (18:05 +0300)
It's destructive.
sequences.lisp
patch
|
blob
|
blame
|
history
diff --git
a/sequences.lisp
b/sequences.lisp
index
e7f1925
..
9e4ff74
100644
(file)
--- a/
sequences.lisp
+++ b/
sequences.lisp
@@
-81,8
+81,9
@@
share structure with it."
(defun shuffle (sequence &key (start 0) end)
"Returns a random permutation of SEQUENCE bounded by START and END.
-Permuted sequence may share storage with the original one. Signals an
-error if SEQUENCE is not a proper sequence."
+Original sequece may be destructively modified, and share storage with
+the original one. Signals an error if SEQUENCE is not a proper
+sequence."
(declare (type fixnum start)
(type (or fixnum null) end))
(etypecase sequence