How to initialize all elements of Vector?

var myVector = Vector.fromArrayCopy([0,1,2]);
var anotherOne = Vector.fromArrrayCopy([ for (i in 0...3) i ]);

The downside is that the array literal is converted to an array before Vector gets hold of it, so it’s a tiny bit inefficient. However, the objects of the array aren’t duplicated, only the pointers.