]> gitweb.factorcode.org Git - factor.git/commitdiff
backtrack: Added cut-amb
authorWilliam Schlieper <schlieper@unc.edu>
Sun, 10 Aug 2008 02:33:58 +0000 (22:33 -0400)
committerWilliam Schlieper <schlieper@unc.edu>
Sun, 10 Aug 2008 02:33:58 +0000 (22:33 -0400)
extra/backtrack/backtrack.factor

index 3c1a79412118bd5891a2fab0b58da82e0c3e2b0a..db2c50173c9f8c85c7585fb448d4e9e5bf4bb9f9 100755 (executable)
@@ -66,3 +66,5 @@ MACRO: amb-execute ( seq -- quot )
         tri* if\r
     ] with-scope ; inline\r
 \r
+: cut-amb ( -- )\r
+    f failure set ;\r