]> gitweb.factorcode.org Git - factor.git/commitdiff
cursors: push the -out- part from -map into -map-
authorJoe Groff <arcata@gmail.com>
Thu, 25 Mar 2010 01:16:22 +0000 (18:16 -0700)
committerJoe Groff <arcata@gmail.com>
Thu, 25 Mar 2010 01:16:22 +0000 (18:16 -0700)
extra/cursors/cursors.factor

index a82f0e28a08d8680eb5e98ae9acbb46bdc2b4ebd..5a3e7475c685a639f00d379905f950e66bff2ac1 100644 (file)
@@ -305,10 +305,10 @@ M: map-cursor set-cursor-value-unsafe to>> set-cursor-value-unsafe ; inline
 M: map-cursor set-cursor-value        to>> set-cursor-value        ; inline
 
 : -map- ( begin end quot to -- begin' end' quot' )
-    swap [ '[ _ <map-cursor> ] bi@ ] dip '[ from>> @ ] ; inline
+    swap [ '[ _ <map-cursor> ] bi@ ] dip '[ from>> @ ] -out- ; inline
 
 : -map ( begin end quot to -- begin' end' quot' )
-    -map- -out ; inline
+    -map- -each ; inline
 
 !
 ! pusher cursor