Skip to content

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

Closed
@That3Percent

Description

@That3Percent

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions