]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "spread>quot now outputs empty quotations where you would expect so that thing...
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Sep 2011 04:41:49 +0000 (23:41 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Sep 2011 04:41:49 +0000 (23:41 -0500)
This causes problems in bootstrap and in make-images. Revisit sometime in the future...
This reverts commit 004b20df12745bd8feabcdde5b9ae2780dcb36ee.

core/combinators/combinators-tests.factor
core/combinators/combinators.factor

index 3a8cc23811913b199ae005021b6a31d46421daff..97de07d54668a51e8631c0a8f5c233ef1b3fe791 100644 (file)
@@ -1,6 +1,6 @@
 USING: alien strings kernel math tools.test io prettyprint
 namespaces combinators words classes sequences accessors
-math.functions arrays combinators.private stack-checker ;
+math.functions arrays combinators.private ;
 IN: combinators.tests
 
 [ 3 ] [ 1 2 [ + ] call( x y -- z ) ] unit-test
@@ -320,7 +320,3 @@ DEFER: corner-case-1
 
 [ "nachos" ] [ 33 test-case-12 ] unit-test
 [ "nachos" ] [ 33 \ test-case-12 def>> call ] unit-test
-
-! Fixes #138
-[ { 3 3 } ]
-[ [ { [ ] [ ] [ ] } spread ] [ inputs ] [ outputs ] bi 2array ] unit-test
\ No newline at end of file
index ace9b47aa1139c3d26cb16f7598b743829fabf1a..fc259afbaf57ffd0ac5d53bb17f62317096da5ec 100644 (file)
@@ -66,7 +66,7 @@ SLOT: terminated?
 
 ! spread
 : spread>quot ( seq -- quot )
-    [ ] [ [ [ dip ] curry ] dip append ] reduce ;
+    [ ] [ [ dup empty? [ [ dip ] curry ] unless ] dip append ] reduce ;
 
 : spread ( objs... seq -- )
     spread>quot call ;