Coroutines

This commit is contained in:
2026-02-07 22:15:07 +01:00
parent 4039394e42
commit 3c51b65be2
7 changed files with 524 additions and 67 deletions

8
1.pl
View File

@ -1,3 +1,5 @@
world(zero).
entier(s(X)) :- entier(X).
mimi(hello(X)) :- X.
int(zero).
int(s(X)) :- int(X).
add(X, zero, X).
add(X, s(Y), Z) :- add(s(X), Y, Z).