1)
fun x 1 = 1
| x n = x (n - 1);
---
all the best
please upvote
2)
fun f x =
let
fun g y = x + y
in
g
end;
Fails since a dynamically allocated stack of activation records plus nesting links will not accommodate the return value of a function which requires the use of values from the containing function.
write the shortest ML function you can that would not work correctly if implemented using statically...