3 ms·
The es wiki page linked in the bug doesn't say much about array/generator comprehensions, e.g.: [for (x of a) for (y of b) x * y] but those would be really ni
by surrealize 14y ago
The es wiki page linked in the bug doesn't say much about array/generator comprehensions, e.g.:
[for (x of a) for (y of b) x * y]
but those would be really nice as well.
A few months ago the ES committee decided to switch them from reading right-to-left (as in spidermonkey comprehensions, python, and haskell) to reading left-to-right (as in C#):
https://gist.github.com/dherman/b250d1fad15dbb5f77a5 https://gist.github.com/dherman/b250d1fad15dbb5f77a5