Skip to main content
Module

x/fun/schemable.ts>LazySchemable

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

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.

Properties

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