/iterext

Ports of Rust's Iterator and future-rs' StreamExt

Primary LanguageTypeScriptMIT LicenseMIT

iterext

Approximate ports of Rust's Iterator and future-rs' StreamExt to TypeScript.

Example

import { Iter } from "./mod.ts";

Iter.repeatWith((i) => "A".repeat(i + 1))
  .enumerate()
  .map(([index, value]) => `[${index}] ${value}`)
  .take(100)
  .forEach(console.log);