Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
funcA = function(x)
|
||||
return x * 10
|
||||
end function
|
||||
|
||||
funcB = function(x)
|
||||
return x + 5
|
||||
end function
|
||||
|
||||
compose = function(f, g)
|
||||
return function(x)
|
||||
return f(g(x))
|
||||
end function
|
||||
end function
|
||||
|
||||
f = compose(@funcA, @funcB)
|
||||
print f(3) // should be equal to (3+5)*10
|
||||
Loading…
Add table
Add a link
Reference in a new issue