3 ms·
In ocaml you would rather do something like this: let x_power_8 = (let a = x*x in let b = a*a in b*b); a, b variables are just used for computing x_power_8, yo
by lairv 1y ago
In ocaml you would rather do something like this: let x_power_8 = (let a = x*x in let b = a*a in b*b);
a, b variables are just used for computing x_power_8, you don't need them outside of this scope. I think the point of the exercise is to use variable binding, though I agree the website doesn't explain much