Skip to main content
Module

x/fun/mod.ts>optics.Reviewer

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 optics.Reviewer
import { type optics } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { Reviewer } = optics;

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