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

x/rimbu/common/optlazy.ts

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
import * as rimbu from "https://deno.land/x/rimbu@1.0.2/common/optlazy.ts";

Functions

Returns the value contained in an OptLazy instance of type T.

Returns the value contained in an OptLazyOr instance of type T, or the given otherValue if the lazy function returns it.

Type Aliases

A potentially lazy value of type T.

A potentially lazy value that, in case of a lazy function, received a default value that it can return.