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

[FEATURE] Define multiple variables with one single line #182

Open
furesoft opened this issue Oct 23, 2022 · 0 comments
Open

[FEATURE] Define multiple variables with one single line #182

furesoft opened this issue Oct 23, 2022 · 0 comments
Assignees
Labels

Comments

@furesoft
Copy link
Member

furesoft commented Oct 23, 2022

let (x, y) = (1, 2);

or

let (x, y) = 42; //both variables will be initialized with the same value

binds the values of the expression (could be also a function that returns a tuple) based on the index

@furesoft furesoft self-assigned this Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant