Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/iter/lib/generators.ts

A bunch of utilities for working with iterables, many inspired by the native array methods.
Latest
import * as iter from "https://deno.land/x/iter@v3.2.3/lib/generators.ts";

Functions

Creates an endless iterable of a constant value.

Creates an endless iterable from the return values of a function.

Creates an iterable from IteratorResults returned by a function.

Creates an iterable over a string's char codes.

Creates an iterable over a string's chars.

Constructs an iterable from an iterable of its results.

Creates an endless iterable of incrementing numbers.

Creates an endless iterable of pseudorandom numbers.

Creates an iterable over an inclusive range of numbers.

Interfaces

endlessFrom | endlessFrom generator callback.

from | from generator callback.