When I try this in Ramda I get an Illegal Invocation exception:
var arr = R.map(r.rows.item, R.range(0, r.rows.length));
I can do it in two lines but then it seems even more of a hack:
var i = 0;
var arr = R.repeatN(null, r.rows.length).map( function() { return r.rows.item(i++); } );
What is the preferred method of accomplishing this? Should I stick with a loop instead?