]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/backtrack/backtrack-docs.factor
factor: use new math.ranges syntax in tests and docs
[factor.git] / extra / backtrack / backtrack-docs.factor
index 573864ec347077e9cc360643cee6abf3a2ae5fe4..f4efda5a0b9c6431b801cc7f82517fda0c3b10dc 100644 (file)
@@ -21,7 +21,7 @@ $nl
         "    [ + 30 = ] [ 4 * swap 2 * + 74 = ] 2bi and ;"
         ""
         "["
-        "    1 30 [a,b] amb 1 30 [a,b] amb"
+        "    1 30 [a..b] amb 1 30 [a..b] amb"
         "    [ check must-be-true ] [ 2array ] 2bi"
         "] bag-of ."
         "V{ { 23 7 } }"
@@ -32,7 +32,7 @@ $nl
         "    [ + 30 = ] [ 4 * swap 2 * + 74 = ] 2bi and ;"
         ""
         "["
-        "    1 30 [a,b] amb 1 30 [a,b] amb"
+        "    1 30 [a..b] amb 1 30 [a..b] amb"
         "    2dup check must-be-true"
         "    \"%d chickens, %d cows\\n\" printf"
         "    t"