Maël Nison (2014-06-20T13:00:21.000Z)
Btw, I used the wrong syntax in my precedent mail. It should be :

    [ for (n of Number.range(0, 12)) new Month(n) ]


On 20 June 2014 11:24, Maël Nison <nison.mael at gmail.com> wrote:

> Hi,
>
> Is there plans to add a range generator to the standard library ?
>
> It would be especially useful with array comprehension, when initializing
> arrays :
>
>     this._year = [ new Month(n) for n of Number.range(0, 12) ]
>
> --
> Maël Nison (arcanis <https://twitter.com/arcanis>)
> Frontend Developer @ Sketchfab
>
>
>


-- 
Maël Nison (arcanis <https://twitter.com/arcanis>)
Frontend Developer @ Sketchfab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140620/57d1b260/attachment.html>
dignifiedquire at gmail.com (2014-06-23T17:41:49.352Z)
Btw, I used the wrong syntax in my precedent mail. It should be:

```js
[ for (n of Number.range(0, 12)) new Month(n) ]
```