Skip to main content
Module

x/fun/mod.ts>schemable.LazySchemable

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
interface schemable.LazySchemable
implements Hold<U>
import { type schemable } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { LazySchemable } = schemable;

Takes an id and a thunk returning a schemable and returns a schemable that matches the return value of the thunk. This schemable is necessary for handling recursive or corecursive schemables.

Type Parameters

U extends Kind

Properties

readonly
lazy: <A, B, C, D, E>(id: string, f: () => $<U, [A, B, C], [D], [E]>) => $<U, [A, B, C], [D], [E]>