size_t[3] arr = [ 0, 1, 2 ]; static assert( is( typeof( pasteStat( arr, 0, 10 ) ) == size_t[4] ) ); assert( eq( pasteStat( arr, 0, 10 ), [10,0,1,2] ) ); assert( eq( pasteStat( arr, 1, 10 ), [0,10,1,2] ) ); assert( eq( pasteStat( arr, 3, 10 ), [0,1,2,10] ) );
paste value to static array