1 auto a = [ 1.0f, 2, 3 ];
2 assert( a.mean == 2.0f );
3
4 static assert( !__traits(compiles,[1,2,3].mean) );
5 static assert( __traits(compiles,[1.0f,2,3].mean) );
import des.math.linear.vector;
auto a = [ vec3(1,2,3), vec3(2,3,4), vec3(3,4,5) ];
assert( a.mean == vec3(2,3,4) );
expected value