Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Currying/R/currying-1.r
Normal file
2
Task/Currying/R/currying-1.r
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
curry <- \(f) \(x) \(y) f(x, y)
|
||||
uncurry <- \(f) \(x, y) f(x)(y)
|
||||
4
Task/Currying/R/currying-2.r
Normal file
4
Task/Currying/R/currying-2.r
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
add_curry <- curry(`+`)
|
||||
add2 <- add_curry(2)
|
||||
add2(40)
|
||||
uncurry(add_curry)(40, 2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue