How to unpack a tuple into multiple variables?

zjh fqbqrr at 163.com
Wed Feb 7 01:17:33 UTC 2024


On Monday, 5 February 2024 at 21:12:58 UTC, Gary Chike wrote:
> I hope all is well with everyone. I have come to an impasse. 
> What is the best way to unpack a tuple into multiple variables 
> in D similar to this Python code? Thank you!
>



Officially, there should be an unpacking solution, like
```d
//C++
auto[a,b,c]=tuple.
```


More information about the Digitalmars-d-learn mailing list