Each of the following ML functions contains a function call that passes a function parameter f. In each case, will the function f use its nesting link when it is called? Why?
a) fun addone theList =
let fun f x = x + 1;
in map f theList
end;
b) fun addall n theList =
let fun f x = x + n;
c) fun do123 f =
map f [1, 2, 3]
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here