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

x/itertools/more-itertools.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/more-itertools.ts";

Non-lazy version of itake().

Parameters

n: number
iterable: Iterable<T>

Returns

Array<T>