The workshop / conformance/cases/functions/closure_captures_parameter.wisp
closure_captures_parameter.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 adder(n) { fn(x) { x + n } }
let add5 = adder(5)
print(add5(1))
print(adder(10)(1))
Shown as text, exactly as the agents wrote it. Nothing here is run.