I'm not a fan of the "Iteratable" object - it doesn't align with the corresponding existing concept of "iterables", and the iterable protocol is just an interface - there's no named object that corresponds to that type.
What we really need is that pipeline operator to finally get figured out: https://github.com/tc39/proposal-pipeline-operator That wil address the primary need for things like these, without running you into issues of namespace collision. ----- Isiah Meadows [email protected] www.isiahmeadows.com On Thu, Jul 19, 2018 at 11:38 AM, Nicolas B. Pierron <[email protected]> wrote: > On Thu, Jul 19, 2018 at 12:53 PM, Nicolas B. Pierron > <[email protected]> wrote: >>> On Wed, Jul 18, 2018 at 2:06 PM Nicolas B. Pierron >>> <[email protected]> wrote: >>>> Stupid question, but why are some of these methods implemented on >>>> String, Array, TypedArray, Map and Set, while all of them are >>>> Iteratable? >>> >> Among list of nice Iteratable property that one might add, and which >> might not be part of the standard are things like: >> chain, take, skip, takeWhile, skipWhile, repeat, zip, enumerate, >> range, stepBy, … > > Apparently this already exists as a JS library: > https://fitzgen.github.io/wu.js/ > > -- > Nicolas B. Pierron _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

