haskell max function
The max
function in Haskell is used to find the maximum of two values. It takes two arguments and returns the larger of the two. Here is an example usage of the max
function:
maxValue = max 10 20
In this example, the max
function is used to find the maximum of the numbers 10 and 20. The result, which is the larger of the two numbers, is stored in the maxValue
variable.