how to write a function that returns the maximum number from a list of number values, if one exists. In the case it is given the empty list then it cannot return a number.
i get:
let rec max_number_list l =
match l with
|[] -> None
|x::_ -> x
|x::xs -> max x (max_number_list xs)
I got this error "This expression has type number but an expression was expected of type int" idk how to take input number list and return output number option.