asDynamicArray

asDynamicArray
(
T
)
(
inout T tup
)

Return Value

Type: auto

tuple tup as a dynamic array.

Examples

import std.typecons: tuple;
auto tup = tuple("a", "b", "c", "d");
string[4] arr = ["a", "b", "c", "d"];
assert(tup.asDynamicArray() == arr);

Meta