Skip to main content
Module

x/fun/optics.ts>Modifier

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 Modifier
import { type Modifier } from "https://deno.land/x/fun@v2.0.0-alpha.10/optics.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