Skip to main content
Module

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

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

Applies the given lazy iterable implementation to the current object. This allows for using custom Lazy implementations using the standard chaining syntax.

Type Parameters

TLazy extends Lazy<TResult>
optional
TResult = TElement

Parameters

fn: (t: Lazy<TElement>) => TLazy

The function that will create the iterable instance using the current object.

Returns

The instantiated iterable object.