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
Right now (as of issue creation time) anonymous functions can only be declared like this:
f = (x) -> return x^2
Which gets pretty annoying when it comes to using functions like map:
map
map((x) -> return num(x), input().split())
The suggestion is that another operator should be added, which will allow creation of one-expression instant-return lambdas:
map((x) => num(x), input().split())
Suggestions for operator symbol:
=>
->:
This operator should be a syntaxic sugar and at parse-time should unfold into regular lambda.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Right now (as of issue creation time) anonymous functions can only be declared like this:
Which gets pretty annoying when it comes to using functions like
map
:The suggestion is that another operator should be added, which will allow creation of one-expression instant-return lambdas:
Suggestions for operator symbol:
=>
->:
This operator should be a syntaxic sugar and at parse-time should unfold into regular lambda.
The text was updated successfully, but these errors were encountered: