You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let rec factorial = fun n -> if n = 1 then 1 else n * factorial (n - 1) in let n = 4 in n * factorial (n - 1)
let rec factorial = fun n -> if n = 1 then 1 else n * factorial (n - 1) in let n = 4 in 4 * factorial (n - 1)
let rec factorial = fun n -> if n = 1 then 1 else n * factorial (n - 1) in let n = 4 in 4 * factorial (4 - 1)
let rec factorial = fun n -> if n = 1 then 1 else n * factorial (n - 1) in let n = 4 in 4 * factorial 3
And we would like n * factorial (n -1) to go to 4 * factorial (4 - 1) in one step.
The text was updated successfully, but these errors were encountered:
For example in
factorial.ml
we have:And we would like
n * factorial (n -1)
to go to4 * factorial (4 - 1)
in one step.The text was updated successfully, but these errors were encountered: