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

x/itertools/builtins.ts>reduce_

🦕 A TypeScript port of Python's itertools and more-itertools for Deno
Go to Latest
function reduce_
import { reduce_ } from "https://deno.land/x/itertools@v1.1.1/builtins.ts";

See reduce().

Parameters

iterable: Iterable<T>
reducer: (
a: T,
v: T,
i: number,
) => T