Skip to main content
Module

x/fun/optics.ts>index

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

Given an optic over an array, focus on a value at an index in the array.

Parameters

i: number

Returns

<U extends Tag, S, A>(first: Optic<U, S, ReadonlyArray<A>>) => Optic<Align<U, AffineTag>, S, A>