tuple tup to a static array.
import std.typecons: tuple; const auto tup = tuple("a", "b", "c", "d"); const string[4] arr = ["a", "b", "c", "d"]; static assert(is(typeof(tup.toStaticArray1()) == typeof(arr))); assert(tup.toStaticArray1() == arr);
http://dpaste.dzfl.pl/d0059e6e6c09
See Implementation