We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lua does something similar - from https://www.lua.org/pil/5.html
An expression like o:foo(x) is just another way to write o.foo(o, x), that is, to call o.foo adding o as a first extra argument.
It wouldn't help with using const {map} = Array.prototype but it would allow functional thisless pure pipelines. E.g:
const {map} = Array.prototype
a::map( upperCase )::filter( s => s.length > 5 )
would be compiled to
filter( map(a, upperCase), (s) => s.length > 5)
Allowing functions to be written like like :
function upperCase(name) { return name.toUpper() }
The text was updated successfully, but these errors were encountered:
Also see https://github.com/mindeavor/es-pipeline-operator
Sorry, something went wrong.
this
No branches or pull requests
Lua does something similar - from https://www.lua.org/pil/5.html
It wouldn't help with using
const {map} = Array.prototype
but it would allow functional thisless pure pipelines. E.g:would be compiled to
Allowing functions to be written like like :
The text was updated successfully, but these errors were encountered: