Skip to main content
Module

x/better_iterators/mod.ts>Lazy#chunked

Chainable iterators (sync and async) for TypeScript, with support for opt-in, bounded parallelism
Latest
method Lazy.prototype.chunked
import { Lazy } from "https://deno.land/x/better_iterators@v1.5.0/mod.ts";

Iterate by chunks of a given size formed from the underlying Iterator.

Each chunk will be exactly size until the last chunk, which may be from 1-size items long.

Parameters

size: number