]> gitweb.factorcode.org Git - factor.git/commitdiff
sorting: simpler check-bounds.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 18 Feb 2014 01:50:08 +0000 (17:50 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 18 Feb 2014 01:50:08 +0000 (17:50 -0800)
core/sorting/sorting.factor

index 5ca547685e8746af7cac88cbc4489ae07335a7cd..fd149314175c2c2444290c2f621af7c8cbfaf29c 100644 (file)
@@ -148,8 +148,7 @@ PRIVATE>
 <PRIVATE
 
 : check-bounds ( alist n -- alist )
-    [ swap 2dup bounds-check? [ 2drop ] [ bounds-error ] if ]
-    curry dupd each ;
+    [ swap bounds-check 2drop ] curry dupd each ;
 
 PRIVATE>