> Well, let's use it in context then. I think this is correct?
>
> ```js
> const flattened = iterableReduce(iterableOfIterables, (a, b) =*> { yield*
> a; yield* b; }, []);
> ```
>
Makes sense to me.
Still, what's the alternative?
function* concat(a, b) { yield* a; yield* b; }
const flattened = iterableReduce(iterableOfIterables, concat, []);
Not so bad. Again though, we can't make good optimization choices in a
(data) vacuum.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss