Did you know ... Search Documentation:
Predicate max_pair/3
 min_pair(+Pairs, -Key, -Value) is det[private]
 max_pair(+Pairs, -Key, -Value) is det[private]
True if Key-Value has the smallest/largest key in Pairs. If multiple pairs share the smallest/largest key, the first pair is returned.