This is absolutely driving me nuts. The supposed simplest thing I can imagine and I can't do it.
I just want to computer factorial inputting an int and output a real.
I've tried to coerce in numerous way.
fun factorial 0 = 1 |
factorial n = n * factorial(n-1);