name = 'max/2' slug = 'find the largest element in list' description = '''\
max(L, Max): Max is the largest value in the list L.
max(L, Max)
Max
L
?- max([5,4,1,6], M). M = 6. ?- max([3,2,2], M). M = 3.