Luarrow – True pipeline operators and elegant Haskell-style function compositio
24 points by todsacerdoti
by orthoxerox
1 subcomments
I love it when people push syntax to its limits. The only thing I do not like is how `^` points in the wrong direction when you stack it vertically, like in the example:
local _ = 5
% arrow(function(x) return -x end)
^ arrow(function(x) return x + 10 end)
^ arrow(function(x) return x * x end)
^ arrow(print) -- 25
by wosined
0 subcomment
Just use Haskell. You can be among the first.
by NuclearPM
0 subcomment
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.