import { type OptLazy } from "https://deno.land/x/rimbu@0.13.1/core/main/exports.ts";
A potentially lazy value of type T.
import { OptLazy } from "https://deno.land/x/rimbu@0.13.1/core/main/exports.ts";
Returns the value contained in an OptLazy
instance of type T.
Examples
Example 1
Example 1
OptLazy(1) // => 1
OptLazy(() => 1) // => 1
OptLazy(() => () => 1) // => () => 1