Function staticArray

Create a static array literal without any heap allocation.

CommonType!T[T.length] staticArray(T...) (
  T elements
) pure nothrow @safe
if (!is(CommonType!T == void));

staticArray() automatically deduces its type from the arguments, while staticArrayOf() lets you specify the type explicitly.