Documentation Prolog Predicate Reference builtin compare/3

compare/3

Compare two terms according to order.

Description

compare( ?atom, @term, @term )

compare(Order, Term_1, Term_2) is true if and only if Term_1 and Term_2 respect the Order order. Rules about ordering can be found here.

Implementation