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

x/itertools/itertools.ts>izipLongest2

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

Returns an iterator that aggregates elements from each of the iterables. If the iterables are of uneven length, missing values are filled-in with fillvalue. Iteration continues until the longest iterable is exhausted.

Parameters

xs: Iterable<T1>
ys: Iterable<T2>
optional
filler: D

Returns

Iterable<[T1 | D, T2 | D]>