Array comprehensions with Spread operator
Tab Atkins Jr.
jackalmage at gmail.com
Wed Apr 15 16:34:17 UTC 2015
On Wed, Apr 15, 2015 at 9:31 AM, Jeremy Martin <jmar777 at gmail.com> wrote:
> Why not just `[...x, ...y]`?
Obviously that's a solution to the trivial example that monolithed
provided, but it's not a solution to the more general problem he's
alluding to, where you're doing a comprehension and want to insert two
or more elements into the result in a single iteration.
~TJ
More information about the es-discuss
mailing list