alias tuple = AliasSeq!(1, "hello", 1L, [1, 2, 3]); MapTuple!(a => a.to!string, tuple); // gives AliasTuple!("1", "hello", "1", "[1, 2, 3]") MapTuple!(Quirks, tuple); // gives AliasTuple!(Quirks!(1), Quirks!("hello"), Quirks!(1L), Quirks!([1, 2, 3]))
Takes a tuple and maps it with the given function or template.