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

3 lines
66 B
R
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
curry <- \(f) \(x) \(y) f(x, y)
uncurry <- \(f) \(x, y) f(x)(y)