RosettaCodeData/Task/Currying/ArkScript/currying.ark

8 lines
127 B
Text
Raw Permalink Normal View History

2025-08-11 18:05:26 -07:00
(let addN (fun (n)
(fun (x &n)
(+ x n))))
(let add2 (addN 2))
(print (type add2))
(assert (= 7 (add2 5)) "add2 5 is 7")