Skip to main content
Module

x/fun/optic.ts>Iso

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

Iso<S, A> is an alias of Lens<S, A> & Reviewer<S, A>. This means that an Iso operates exactly like a Lens with the added ability to go back from A to S.

definition: Lens<S, A> & Reviewer<S, A>