next up previous
Next: Constructing Recursive Data Structures Up: Adding Computation Domains: CLP Previous: Constructing Recursive Data Structures

Constructing Recursive Data Structures

  $\mbox{$\bullet$}$
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>