Skip to main content
Module

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

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