Re: Array method ranges

2013-01-24 Thread Brandon Benvie
It looks like the beginnings of an outline were added to the standard modules list living under '@iter' with zip and unzip so far: http://wiki.ecmascript.org/doku.php?id=harmony:modules_standard. But no separate strawman yet. On Thursday, January 24, 2013, Brendan Eich wrote: > Yes, this was the

Re: Array method ranges

2013-01-24 Thread Brendan Eich
Yes, this was the plan. I don't see a strawman, yet. Cc'ing jorendorff. /be Erik Arvidsson wrote: At this point I think we are better of moving towards iterator methods. For example if we had an islice like the one in Python's itertools [*] we can do: for (let v of islice(arr, start, stop)) {

Re: Array method ranges

2013-01-24 Thread Erik Arvidsson
At this point I think we are better of moving towards iterator methods. For example if we had an islice like the one in Python's itertools [*] we can do: for (let v of islice(arr, start, stop)) { ... } this would be equivalent to your proposed arr.forEach((v) => { ... }, undefined, start, stop

RE: Array method ranges

2013-01-24 Thread François REMY
Good idea. However, I don't like the fact "arr.forEach(f,null,-1,0)" doesn't walk the array backwards properly. Not sure it's worth to have it built-in though. > Date: Thu, 24 Jan 2013 12:06:23 +0100 > Subject: Array method ranges > From: e...@qfox.nl > T