
Next: Equality
Up: The Instructions
Previous: Lists
In analogy to lists, the following classes of operations on structures
exist:
- construction: struct

struct
creates a structure with arity
; functor
and arguments are on the stack
- 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
- test: structp
structp tests for a structure