Array comprehensions with Spread operator

Jeremy Martin jmar777 at gmail.com
Wed Apr 15 16:36:34 UTC 2015


Thanks, I gathered so after your response. This is why 99% of the time I
wait for at least one other person to reply first, and why I *should* wait
the remaining 1%... :)

On Wed, Apr 15, 2015 at 12:34 PM, Tab Atkins Jr. <jackalmage at gmail.com>
wrote:

> 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
>



-- 
Jeremy Martin
661.312.3853
http://devsmash.com
@jmar777
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150415/22cc02ee/attachment.html>


More information about the es-discuss mailing list