Skip to main content
Module

x/fun/mod.ts>optic.Optic

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

An Optic<T, S, A> is defined as a Viewer<T, S, A> combined with a Modifier<S, A>. This is the root type for the specific types of Optics defined below.

Type Parameters

T extends Tag
S
A