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

x/itertools/mod.ts>compress

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

Non-lazy version of icompress().

Parameters

data: Iterable<T>
selectors: Iterable<boolean>

Returns

Array<T>