Skip to content

future methods on iterator helpers #35

@bakkot

Description

@bakkot

@michaelficarra and I have been thinking about what other iterator helper methods we'd like to pursue, and have the following extremely tentative list. This doesn't represent the opinion of TC39 as a whole - it's just what we are personally interested in. This is not necessarily actionable for you; I just wanted to give a heads up.

  • zip / zipWith / (maybe) zipLongest
  • chunks / windows (chunks would group outputs into a chunk every n items, windows would give you a sliding window of the last n items)
  • concat
  • join (like on Array.prototype)
  • tap
  • some sort of cleanup (analogous to this proposal's finally; ideally these would be designed in concert)
  • of (like on Array)
  • takeWhile / dropWhile
  • scan
  • into (i.e. function(arg) { return arg(this); } - handy for chaining / custom operators; RxJS spells this pipe)

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible future enhancementAn enhancement that doesn't block standardization or shipping

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions