How to unpack a tuple into multiple variables?

Gary Chike chikega at gmail.com
Wed Feb 7 05:29:45 UTC 2024


On Wednesday, 7 February 2024 at 01:17:33 UTC, zjh wrote:

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

Wouldn't that be nice? I hope a clean and terse 
direct-implementation comes in the near future. :)




More information about the Digitalmars-d-learn mailing list