Given the following function in SML:
fun i a b = let fun j()=a+1 in j end;
The data type of the function is:
val i = fn : int -> 'a -> unit -> int
I don't understand why int -> 'a -> unit -> int
?
And why not (int * a') -> unit -> int
, since the function i
receives two inputs.