Skip to main content
Version: Next

compare/3

Description

compare/3 is a predicate that compares two terms according to the standard order.

Signature

compare(?Order, +Left, +Right)

Where:

  • Order is unified with '<', '=', or '>' depending on the comparison result.
  • Left is the first term to compare.
  • Right is the second term to compare.