Skip to content
New issue

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

one-liner functions as args #66

Open
cooper opened this issue Dec 3, 2018 · 0 comments
Open

one-liner functions as args #66

cooper opened this issue Dec 3, 2018 · 0 comments

Comments

@cooper
Copy link
Owner

cooper commented Dec 3, 2018

I wanna be able to use shorthand syntax for anon funcs passed to calls

[1,2,3].map! { -> $_ * 2 }

would look cooler as

[1,2,3].map! -> $_ * 2

should be easy

@cooper cooper changed the title one-liner functions one-liner functions as args Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant