import { optics } from "https://deno.land/x/fun@v2.0.0-alpha.6/mod.ts";
const { prop } = optics;
Given an Optic over a structure with a property P, construct a new Optic at that property P.
Type Parameters
P extends keyof A
Parameters
prop: P
import { optics } from "https://deno.land/x/fun@v2.0.0-alpha.6/mod.ts";
const { prop } = optics;
Given an Optic over a structure with a property P, construct a new Optic at that property P.