]> gitweb.factorcode.org Git - factor.git/commitdiff
Removed helper functions from benchmark.backtrack
authorWilliam Schlieper <schlieper@unc.edu>
Wed, 16 Jul 2008 11:10:45 +0000 (07:10 -0400)
committerWilliam Schlieper <schlieper@unc.edu>
Wed, 16 Jul 2008 11:10:45 +0000 (07:10 -0400)
extra/benchmark/backtrack/backtrack.factor [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index e9a5ad0..5d011b5
@@ -12,18 +12,6 @@ IN: benchmark.backtrack
 
 : nop ;
 
-MACRO: amb-execute ( seq -- quot )
-    [ length ] [ <enum> [ 1quotation ] assoc-map ] bi
-    '[ , amb , case ] ;
-
-: if-amb ( true false -- )
-    [
-        [ { t f } amb ]
-        [ '[ @ require t ] ]
-        [ '[ @ f ] ]
-        tri* if
-    ] with-scope ; inline
-
 : do-something ( a b -- c )
     { + - * } amb-execute ;