Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Function-composition/Brat/function-composition.brat
Normal file
7
Task/Function-composition/Brat/function-composition.brat
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
compose = { f, g | { x | f g x } }
|
||||
|
||||
#Test
|
||||
add1 = { x | x + 1 }
|
||||
double = { x | x * 2 }
|
||||
b = compose(->double ->add1)
|
||||
p b 1 #should print 4
|
||||
Loading…
Add table
Add a link
Reference in a new issue