modify
modify<
S,A>(opt): (f) => (s) =>S
Defined in: Core/Optional.ts:123
Applies a function to the focused value if it is present; returns the structure unchanged if the focus is absent.
Type Parameters
Section titled “Type Parameters”S
A
Parameters
Section titled “Parameters”Optional<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