commented out failed attempt at providing 'for X in [1,2,3]'
hid developer tools from repl.
trace:
- fixed cycle detection
- terser information printed for each edge.
item => value
| += val1
|
| instantiated rule with subexpressions and variable values shown
| inline.
|
| RECURSE on items in rule.
|
| += val2
- changed color coding.
- documentation, `> help trace`
No more barfing on empty input to trace, query, vquery.
--- /dev/null
+:- backchain f/1.
+
+f(X) := f(X-1) + f(X-2) for X > 1.
+f(1) := 1.
+f(0) := 1.
+
+a := f(3).
+b := f(4).
+c := f(5).
--- /dev/null
+value(&z) := 0.
+value(&s(X)) := 1+value(X) for value(X) < 10.