RosettaCodeData/Task/Currying/R/currying-1.r

3 lines
66 B
R

curry <- \(f) \(x) \(y) f(x, y)
uncurry <- \(f) \(x, y) f(x)(y)