]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/random/random.factor
core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota...
[factor.git] / basis / random / random.factor
index 37e05bb6aa53ff3bc9ab1e92472b44448fe57f9d..cbc9e6dc0b91edc516fdd05d48a6ba1bb106f065 100644 (file)
@@ -128,7 +128,7 @@ ERROR: too-many-samples seq n ;
 
 : sample ( seq n -- seq' )
     2dup [ length ] dip < [ too-many-samples ] when
-    [ [ length iota >array ] dip [ randomize-n-last ] keep tail-slice* ]
+    [ [ length <iota> >array ] dip [ randomize-n-last ] keep tail-slice* ]
     [ drop ] 2bi nths-unsafe ;
 
 : delete-random ( seq -- elt )