Range generator

Maël Nison nison.mael at gmail.com
Fri Jun 20 02:24:50 PDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140620/997f1b78/attachment.html>

More information about the es-discuss mailing list