Lua really needs shorter function syntax for this type of thing to work.
My hobby compile to Lua language uses [ x | x + 1 ] and [ ] for a no-arg function/block.