Documentation Prolog Predicate Reference lists max_list/2

max_list/2

Largest element of a list.

Description

max_list( +list, -number )

max_list(List, Max) is true if and only if Max is the largest element on the list List.

Implementation