Skip to main content
Module

x/fun/mod.ts>optics.some

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

Given an optic focused on an Option, construct an Optic focused within the Option.

type

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