Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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>