zebp / iterext

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

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

License:MIT License


Languages

Language:TypeScript 100.0%