Skip to main content
Module

x/fun/optics.ts>second

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

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

type

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