flatten

flatten nested tuple into 1-d tuple with copies of elements

flatten
()
(
return auto ref Ts ts
)

Examples

enum t = tuple(1, 2, tuple(3, tuple(tuple(4, 5), 6), 7));
static assert(t.flatten == tuple(1, 2, 3, 4, 5, 6, 7));

Meta