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

Add destructuring to Tuples #99

Closed
pakoito opened this issue May 19, 2017 · 1 comment
Closed

Add destructuring to Tuples #99

pakoito opened this issue May 19, 2017 · 1 comment

Comments

@pakoito
Copy link
Member

pakoito commented May 19, 2017

Our tuples are not capable of destructuring at the moment.

Destructuring is based off nomenclature, where every parameter gets a function componentX() where X is the position of the component.

Reference:
https://kotlinlang.org/docs/reference/multi-declarations.html

@raulraja raulraja mentioned this issue May 19, 2017
54 tasks
@pakoito
Copy link
Member Author

pakoito commented May 19, 2017

It's available by default when using data classes, as pointed out by Victor Galan.

@pakoito pakoito closed this as completed May 19, 2017
rachelcarmena added a commit that referenced this issue Feb 24, 2021
rachelcarmena pushed a commit that referenced this issue Feb 24, 2021
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