Commit 209c6e29 authored by Nikodemus Siivola's avatar Nikodemus Siivola

clarify SHUFFLE docstring

  It's destructive.
parent 4119ce8a
...@@ -81,8 +81,9 @@ share structure with it." ...@@ -81,8 +81,9 @@ share structure with it."
(defun shuffle (sequence &key (start 0) end) (defun shuffle (sequence &key (start 0) end)
"Returns a random permutation of SEQUENCE bounded by START and END. "Returns a random permutation of SEQUENCE bounded by START and END.
Permuted sequence may share storage with the original one. Signals an Original sequece may be destructively modified, and share storage with
error if SEQUENCE is not a proper sequence." the original one. Signals an error if SEQUENCE is not a proper
sequence."
(declare (type fixnum start) (declare (type fixnum start)
(type (or fixnum null) end)) (type (or fixnum null) end))
(etypecase sequence (etypecase sequence
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment