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.