Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/optic.ts>Modifier

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

The Modifier<S, A> type implements the modify function (mod: (a: A) => A) => (s: S) => S. This type is directly composable and from it one can recover set/replace behavior.

Properties

readonly
modify: (modifyFn: (a: A) => A) => (s: S) => S