Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
12
Task/Currying/Io/currying.io
Normal file
12
Task/Currying/Io/currying.io
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
curry := method(fn,
|
||||
a := call evalArgs slice(1)
|
||||
block(
|
||||
b := a clone appendSeq(call evalArgs)
|
||||
performWithArgList("fn", b)
|
||||
)
|
||||
)
|
||||
|
||||
// example:
|
||||
increment := curry( method(a,b,a+b), 1 )
|
||||
increment call(5)
|
||||
// result => 6
|
||||
Loading…
Add table
Add a link
Reference in a new issue