Function staticArrayOf

Create a static array literal without any heap allocation.

T[U.length] staticArrayOf(T, U...) (
  U elements
) pure nothrow @safe
if (allConvertibleTo!(T, U));

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