In the interim, a simple library like underscore is quite succinct:
_.map([1,2,3], n => n * n)
_.generate(index => 1.0 / index);
In the interim, a simple library like underscore is quite succinct:
With more library support you could even do infinite lists with something like this: