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

Constructing Recursive Data Structures

  $\mbox{$\bullet$}$
Functors allow constructing recursive data structures
  $\mbox{$\bullet$}$
Simplest recursive data structure: Peano natural numbers
  $\mbox{$\bullet$}$
Logic characterization of Peano numbers:
natural(z).
natural(s(N)):- natural(N).
  $\mbox{$\bullet$}$
Note: very similar to the CLP($\Re$) program



Last modification: Thu Oct 7 12:04:03 MEST 1999 <webmaster@clip.dia.fi.upm.es>