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
add reverse spread operator #17
Comments
I think you mean
|
Yup indeed, I fixed my original message for less confusion. |
done ✔️ |
note: just like the normal spread arguments, reverse spread arguments can't be used in constant expressions. see: 4a781f3#diff-fcefe4cbaff3c20970310dcdc0805199d85d04b75e5d643d0ce3cf01ced2dd4b and: 4a781f3#diff-a7eac1cd62ff44bf6e61280cb2cfcee1d21716dd6b017c43394a56c2fc34c60d |
Nice one !!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey hi !
Following our discussion on Mastodon, I'm opening this issue to discuss a new feature.
The idea would be to have a spread operator, but in reverse direction.
Just like we have the spread operator which spread from the left to the right:
We could have:
This reverse operator would spread an iterable from the right to the left.
Let me know what you think about this idea, this is something that would be very cool to have !
Thanks!
The text was updated successfully, but these errors were encountered: