Next: Equality Up: The Instructions Previous: Lists

Structures

In analogy to lists, the following classes of operations on structures exist:

  1. construction: struct
    struct creates a structure with arity ; functor and arguments are on the stack
  2. selection: functor, arity, elt
    with functor and arity, the functor and the arity of a structure are determined; elt expects a structure and a number on the stack and determines the argument of the structure, where the first argument is counted as the argument
  3. test: structp
    structp tests for a structure


Harold Boley & Michael Sintek (sintek@dfki.uni-kl.de)