The result is displayed in the field Solutions. A LL program is a set of clauses. Numeric calculations are based on rational arithmetic. Internal precision is only limited by the available free memory. String lengths are only limited by the available free memory.
More Examples Here are some definitions for predicates that can be used for list processing.
These three clauses define the predicate reverse that can be used to reverse a list. The predicate maplist assumes that P is the name of a predicate with two arguments. With last one can find the last element of a list. The predicate nextTo succeeds if X and Y are adjacent elements of a list. The predicate member succeeds if X is an element of the list.