modify
modify<
S,A>(opt): (f) => (s) =>S
Defined in: Core/Optional.ts:107
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