]> gitweb.factorcode.org Git - factor.git/commitdiff
use unclip-last-slice
authorDoug Coleman <erg@jobim.local>
Sat, 18 Apr 2009 07:04:58 +0000 (02:04 -0500)
committerDoug Coleman <erg@jobim.local>
Sat, 18 Apr 2009 07:04:58 +0000 (02:04 -0500)
basis/sorting/slots/slots.factor

index 5b910cb621bf9d47566cebeb5cfbe7e91ff99806..5fbf3d7af9153d9dfb1728b3ba24bd5c892d9962 100644 (file)
@@ -12,13 +12,13 @@ IN: sorting.slots
     dup +eq+ eq? [ drop f ] when ;
 
 : slot-comparator ( seq -- quot )
-    [
-        but-last-slice
-        [ '[ [ _ execute( tuple -- value ) ] bi@ ] ] map concat
+    unclip-last-slice [
+        [
+            '[ [ _ execute( tuple -- value ) ] bi@ ]
+        ] map concat
     ] [
-        peek
         '[ _ call( obj1 obj2 -- obj3 obj4 ) _ short-circuit-comparator ]
-    ] bi ;
+    ] bi* ;
 
 PRIVATE>