You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cut_and_control_flow.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,7 +362,7 @@ Prolog maintains a **choice point** at each clause. Backtracking explores altern
362
362
[(-member X [_|T]) (+member X T)]})
363
363
364
364
(:= query [(-member X [1 2 3]) X])
365
-
(show (interact #member @#query))
365
+
(show (exec #member @#query))
366
366
' Result: [1, 2, 3] (all at once, or depends on implementation)
367
367
```
368
368
@@ -427,7 +427,7 @@ R = 5. % Deterministic
427
427
[(-max X Y Y)]})
428
428
429
429
(:= query [(-max 5 3 R) R])
430
-
(show (interact #max @#query))
430
+
(show (exec #max @#query))
431
431
```
432
432
433
433
**Problem:** Both stars might match (or neither, depending on constraint handling). There's no way to say "if the first matches, don't try the second."
@@ -479,7 +479,7 @@ While Stellogen can't reproduce Prolog's cut, it has **different mechanisms** fo
0 commit comments