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

Docs do not mention that tuple destructing can use the "and the rest" operator #1364

Closed
That3Percent opened this issue Jul 28, 2020 · 2 comments

Comments

@That3Percent
Copy link

I think it would be useful if on this page: Destructuring Tuple it mentioned the "and the rest" operator.

For example: let (a, b, ..) = (0, 1, 2, 3, 4); is possible, but the only case I could find something like that was in Appendix B - Operators and Symbols

@xiaochuanyu
Copy link
Contributor

I think this can be closed?

@That3Percent
Copy link
Author

LGTM. It doesn't seem that the changes are reflected in the link yet though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants