Skip to main content
Module

x/fun/mod.ts>optic.Reviewer

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

The Reviewer<S, A. type implements the review function (a: A) => S. This type is directly composable and is used when the S type in Viewer<U, S, A> can be reconstructed from A. Some examples are constructing Option<number> from number, Array<number> from number, etc.

Properties

readonly
review: (a: A) => S