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

[syntax] "for" statement with auto unwrap #3

Open
momentarylapse opened this issue Jul 21, 2024 · 0 comments
Open

[syntax] "for" statement with auto unwrap #3

momentarylapse opened this issue Jul 21, 2024 · 0 comments
Assignees

Comments

@momentarylapse
Copy link
Owner

Tuple types (or structs with elements) can already be "unwrapped" into individual variables:

let (a, b) = make_tuple()

This should also be possible when iterating over lists of tuples:

for (a, b) in list_of_tuples
    ...
@momentarylapse momentarylapse self-assigned this Jul 21, 2024
@momentarylapse momentarylapse changed the title syntax: "for" statement with auto unwrap [syntax] "for" statement with auto unwrap Jul 21, 2024
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