RosettaCodeData/Task/Currying/Pluto/currying.pluto
2025-08-11 18:05:26 -07:00

4 lines
117 B
Text

local function add_n(n) return |x| -> n + x end
local adder = add_n(40)
print($"The answer to life is {adder(2)}.")