Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Would be a good thing to suggest to the team, it is the first release of the language, after all.

In the interim, a simple library like underscore is quite succinct:

  _.map([1,2,3], n => n * n)
With more library support you could even do infinite lists with something like this:

  _.generate(index => 1.0 / index);


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: