max/3
max(enumerable, sort \\ &>=/2)Returns the maximal element in the enumerable according to Erlang’s term ordering.
By default, the comparison is done with the >= sort function. If multiple elements are considered maximal, the first one that was found is returned.
If the enumerable is empty, the provided empty_fallback is called.
The default empty_fallback raises Enum.EmptyError.