Next: Constructing Recursive Data Structures
Up: Adding Computation Domains: CLP
Previous: Constructing Recursive Data Structures
-
- With the previous characterization:
-
- ?- natural(z).
yes
?- natural(potato).
no
?- natural(s(s(s(z)))).
yes
?- natural(X).
X = z ;
X = s(z) ;
X = s(s(z));
?- natural(s(s(X))).
X = z ;
X = s(z) ;
X = s(s(z));
Last modification: Thu Oct 7 12:04:03 MEST 1999 <webmaster@clip.dia.fi.upm.es>