Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -0,0 +1,7 @@
|
|||
local function compose(f, g) return |x| -> f(g(x)) end
|
||||
|
||||
local function double(x) return 2 * x end
|
||||
|
||||
local function add_one(x) return x + 1 end
|
||||
|
||||
print(compose(double, add_one)(3))
|
||||
Loading…
Add table
Add a link
Reference in a new issue