Skip to main content
Module

x/itertools/itertools.ts>izipLongest2

🦕 A TypeScript port of Python's itertools and more-itertools for Deno
Go to Latest
function izipLongest2
import { izipLongest2 } from "https://deno.land/x/itertools@v1.1.1/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]>