Convert array of tuples into array of arrays.

Nick Treleaven nick at geany.org
Wed Aug 31 16:25:34 UTC 2022


On Wednesday, 31 August 2022 at 14:34:50 UTC, musculus wrote:
> Hi. I have an array of tuples that I would like to convert to 
> an array of arrays.
> All of the elements in the tuples have matching types (string).
> How would I go about doing this? Thanks!

Assuming std.typecons.Tuple, you can use `[tup.expand]` to make 
an array from a tuple.
If you mean a value sequence, you can use `[valSeq]`.


More information about the Digitalmars-d-learn mailing list