Skip to main content
Module

x/fun/mod.ts>optics.Iso

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

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>