summary refs log tree commit diff
path: root/mew.svnwiki
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-11-26 22:49:20 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-11-26 22:49:20 +0100
commitc5d3b30866dff0bbe3a2891ea4fcc3cd2d075d74 (patch)
tree8306c54203505a8a5c06bcd3f1797aaefbe71ded /mew.svnwiki
parent979045ff8d29863b4fd693d60a6d022b5b1a405e (diff)
downloadmew-c5d3b30866dff0bbe3a2891ea4fcc3cd2d075d74.tar.gz
mew-c5d3b30866dff0bbe3a2891ea4fcc3cd2d075d74.tar.xz
mew-c5d3b30866dff0bbe3a2891ea4fcc3cd2d075d74.zip
add shuffle!, make shuffle copy the vector
Diffstat (limited to 'mew.svnwiki')
-rw-r--r--mew.svnwiki4
1 files changed, 4 insertions, 0 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index 6509423..7d5dce7 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -525,6 +525,10 @@ Returns a random integer such that N <= {{(rand <M>)}} < {{<M>}}.
 
 <procedure>(shuffle <vector>)</procedure>
 
+Returns a copy of the vector {{<vector>}} with the entries in randomized order.
+
+<procedure>(shuffle! <vector>)</procedure>
+
 Shuffles the vector {{<vector>}} randomly in-place using a Fisher-Yates shuffle.
 
 <procedure>(sample <obj>)</procedure>