Skip to main content
Module

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

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

Joins 2 iterables on the given matching keys. This is similar to a JOIN in SQL.

Type Parameters

TSecond
TKey
TResult

Parameters

second: Iterable<TSecond>

The iterable to join.

firstKeyFn: MapFn<TElement, TKey>

The function that extracts the key from the first iterable.

secondKeyFn: MapFn<TSecond, TKey>

The function that extracts the key from the second iterable.

joinFn: CombineFn<TElement, TSecond, TResult>

The function that takes in a single element from the from each of the first and second iterables, and outputs the resulting element.