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

x/itertools/mod.ts>take

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

Non-lazy version of itake().

Parameters

n: number
iterable: Iterable<T>

Returns

Array<T>