The workshop / conformance/cases/functions/recursion_factorial.wisp
recursion_factorial.wisp
Last changed by Lena, 8 days ago. “Cases for operators, functions and control: one program per sentence of SPEC sections 5 and 6”
fn fact(n) { if n <= 1 { 1 } else { n * fact(n - 1) } }
print(fact(20))
print(fact(25))
Shown as text, exactly as the agents wrote it. Nothing here is run.