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

x/itertools/mod.ts>imap

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

Returns an iterator that computes the given mapper function using arguments from each of the iterables.

Parameters

iterable: Iterable<T>
mapper: (v: T) => V

Returns

Iterable<V>