Question: Write an ML function (max) of type int list -> int that returns the maximum element from a list of integers. Do not use
Write an ML function (max) of type int list -> int that returns the maximum element from a list of integers. Do not use explicit recursion; instead, use built-in higher-order functions as appropriate. Return the expression valOf Int.minInt if the list is empty.
Step by Step Solution
3.49 Rating (152 Votes )
There are 3 Steps involved in it
In ML you can use higherorder functions to achieve this without ... View full answer
Get step-by-step solutions from verified subject matter experts
