[top] [up] [next]

Term precedence


In standard Prolog all the terms are ordered, this order is:

  1. Variable.
  2. Floating-point number.
  3. Integer number.
  4. Atom.
  5. Compound term (a structure).

All variables precede all floating-point numbers, which precede all integer numbers, which precede all atoms and which precede all compound terms.

The term precedence operators are:

@>/2 term greater than
@>= /2 term greater than or equal
== /2 tests whether both arguments are identical
@< /2 term less than
@=< /2 term less than or equal
\== /2 tests whether the arguments are different terms

[top] [up] [next]

 

info@trinc-prolog.com