I have a for loop like so:
var myary = [];
for(i=0; i<3; i++){
myary[i] = i;
}
//yields [0, 1, 2]
I'd like to accomplish the same with myary.apply()
or a functional equivalent, but I am not familiar with generating arithmetic sequences via functional methods in JavaScript.
Is this possible?