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

x/iter/lib/types.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/types.ts";

Interfaces

A curried version of an IterFunction. All non-generator functions in fp.ts are either of type IterFunction or UniaryIterFunction.

The same as the Iterable type, but the iterator implementation is iterable.

Iterable predicate callback.

Type for all iterable functions in the library.

An iterator that defines a peeking mechanism. Inspired by Rust's std::Iter::Peekable

Generic predicate callback.

Type Aliases

Alias for an IterFunction which accepts no arguments accept an iterable.

An alias for a special case of UniaryIterTransformer for when the result is an iterable.