]> gitweb.factorcode.org Git - factor.git/commitdiff
random: format delete-random better.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 4 Mar 2013 01:32:53 +0000 (17:32 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 4 Mar 2013 01:32:53 +0000 (17:32 -0800)
basis/random/random.factor

index 0af42916f4f718aafcccc81e7dd0a6b87750c0f6..f425bb96e0afe24e4b4080dad1a855be2ab95883 100644 (file)
@@ -114,7 +114,8 @@ ERROR: too-many-samples seq n ;
     [ drop ] 2bi nths ;
 
 : delete-random ( seq -- elt )
-    [ length random-integer ] keep [ nth ] 2keep remove-nth! drop ;
+    [ length random-integer ] keep
+    [ nth ] 2keep remove-nth! drop ;
 
 : with-random ( tuple quot -- )
     random-generator swap with-variable ; inline