modify
modify<
S,A>(lens): (f) => (s) =>S
Defined in: Core/Lens.ts:89
Applies a function to the focused value, returning a new structure.
Type Parameters
Section titled “Type Parameters”S
A
Parameters
Section titled “Parameters”Lens<S, A>
Returns
Section titled “Returns”(
f): (s) =>S
Parameters
Section titled “Parameters”(a) => A
Returns
Section titled “Returns”(
s):S
Parameters
Section titled “Parameters”S
Returns
Section titled “Returns”S