Python's itertools module in TypeScript


Help us add more

Got a rainy Sunday afternoon and a taste for a porting puzzle?

We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.

Upstream Surface Inventory 11/20 shipped • 4 next 55%

Namespace-level inventory for Python 3.12: what we already ship, what we may still want, and what we intentionally skip or keep.

itertools

Python 3.12 · Catalog source: version-pinned source manifest python:3.12:itertools

73% shipped
11/15 shipped 4 next 5 explicit non-goals
Shipped (11)

Next

Predicate-based slicing has a clean plain-value contract.

  • dropwhile
  • takewhile

Predicate-based filtering has a clean plain-value contract.

  • filterfalse

Spread-argument mapping still has a clean plain-value contract.

  • starmap
Explicit non-goals (5)
  • count Skip Many itertools helpers are lazy or stateful iterator factories rather than direct plain values.
  • cycle Skip Many itertools helpers are lazy or stateful iterator factories rather than direct plain values.
  • groupby Skip Many itertools helpers are lazy or stateful iterator factories rather than direct plain values.
  • repeat Skip Many itertools helpers are lazy or stateful iterator factories rather than direct plain values.
  • tee Skip Many itertools helpers are lazy or stateful iterator factories rather than direct plain values.

« More Python functions