Skip to main content
Module

x/fun/optics.ts>Optic

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

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