Skip to main content
Module

x/fun/mod.ts>optics.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
function optics.optic
import { optics } from "https://deno.land/x/fun@v2.0.0-alpha.6/mod.ts";
const { optic } = optics;

Type Parameters

U extends Tag
S
A

Parameters

tag: U
view: (s: S) => $<ToURI<U>, [A, never, never]>
modify: (modifyFn: (a: A) => A) => (s: S) => S