Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
20
Task/Currying/Wortel/currying.wortel
Normal file
20
Task/Currying/Wortel/currying.wortel
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
@let {
|
||||
addOne \+ 1
|
||||
subtractFrom1 \- 1
|
||||
subtract1 \~- 1
|
||||
|
||||
subtract1_2 &\- [. 1]
|
||||
|
||||
add ^+
|
||||
; partial apply to named functions
|
||||
addOne_2 \add 1
|
||||
|
||||
; testing
|
||||
[[
|
||||
!addOne 5 ; returns 6
|
||||
!subtractFrom1 5 ; returns -4
|
||||
!subtract1 5 ; returns 4
|
||||
!subtract1_2 5 ; returns 4
|
||||
!addOne_2 5 ; returns 6
|
||||
]]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue