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

x/itertools/mod.ts>map

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

Non-lazy version of imap().

Parameters

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

Returns

Array<V>