Skip to main content
Module

x/lazy/lib/lazy.ts>Lazy#groupJoin

A linq-like lazy-evaluation enumerable/iteration library that aims to support deno, node & browser
Latest
method Lazy.prototype.groupJoin
import { Lazy } from "https://deno.land/x/lazy@v1.7.3/lib/lazy.ts";

Joins 2 iterables on the given key and groups the results.

Type Parameters

TSecond
TKey
TResult

Parameters

second: Iterable<TSecond>

The other iterable to group join with.

firstKeyFn: MapFn<TElement, TKey>

The function that extracts the key from an element of the first iterable.

secondKeyFn: MapFn<TSecond, TKey>

The function that extracts the key from an element of the second iterable.

joinFn: CombineFn<TElement, Iterable<TSecond>, TResult>

The function that takes an element from the first and an iterable of elements from the second, and outputs the resulting element.