Skip to main content
Module

x/fun/optics.ts>right

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
variable right
import { right } from "https://deno.land/x/fun@v2.0.0-alpha.6/optics.ts";

Given an optic focused on an Either<B, A>, construct an Optic focused on the Right value of the Either.

type

<U extends Tag, S, B, A>(optic: Optic<U, S, Either<B, A>>) => Optic<Align<U, AffineTag>, S, A>