Skip to main content
Module

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

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>