Skip to main content
Module

x/fun/mod.ts>optic.modifier

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

Construct a Modifier<S, A. from a modify function.

Parameters

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