Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/optic.ts>Reviewer

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
interface Reviewer
import { type Reviewer } from "https://deno.land/x/fun@v2.0.0/optic.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