Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

[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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant