Arrayconstructor should be
12in the above code to create an array equivalent to
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]. I'm not certain why though; I've never seen an array passed to the
While it's an interesting technique, I think a regular array is a bit more intuitive. In this case, I would also expect shorter code and better performance from an ordinary array.