Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fun/initializable.ts>struct

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function struct
import { struct } from "https://deno.land/x/fun@v2.0.0/initializable.ts";

Create an Initializable fixed to a struct using nested Initializables to create the init values within.

Parameters

initializables: [K in keyof O]: Initializable<O[K]>

Returns

Initializable<readonly [K in keyof O]: O[K]>