6 lines
86 B
Prolog
6 lines
86 B
Prolog
int(zero).
|
|
int(s(X)) :- int(X).
|
|
add(X, zero, X).
|
|
add(X, s(Y), Z) :- add(s(X), Y, Z).
|
|
|