import { set } from "https://deno.land/x/fae@v1.1.1/mod.ts";
Returns the result of "setting" the portion of the given data structure target
focused by the given len
s to the given value
.
const xLens = Fae.lensProp('x')
Fae.set(xLens, 4, {x: 1, y: 2}) // {x: 4, y: 2}
Fae.set(xLens, 8, {x: 1, y: 2}) // {x: 8, y: 2}