]> gitweb.factorcode.org Git - factor.git/commitdiff
remove >r r>
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 14 Dec 2008 06:52:15 +0000 (00:52 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 14 Dec 2008 06:52:15 +0000 (00:52 -0600)
extra/state-machine/state-machine.factor

index 37e12a6993eb67a8d96d3368c8ef2d2a6fcefb1c..18c37209274eb401792926b5fe5f7ea394390d51 100755 (executable)
@@ -21,14 +21,14 @@ M: missing-state error.
     ! quot is ( state string -- output-string )
     [ missing-state ] <array> dup
     [
-        [ >r dup [ data>> ] [ place>> ] bi r> ] %
+        [ [ dup [ data>> ] [ place>> ] bi ] dip ] %
         [ swapd bounds-check dispatch ] curry ,
         [ each pick (>>place) swap (>>date) ] %
     ] [ ] make [ over make ] curry ;
 
 : define-machine ( word state-class -- )
     execute make-machine
-    >r over r> define
+    [ over ] dip define
     "state-table" set-word-prop ;
 
 : MACHINE: