set
set<
S,A>(opt): (a) => (s) =>S
Defined in: Core/Optional.ts:112
Replaces the focused value within a structure. For indexed focuses, this is a no-op when the index is out of bounds.
Type Parameters
Section titled “Type Parameters”S
A
Parameters
Section titled “Parameters”Optional<S, A>
Returns
Section titled “Returns”(
a): (s) =>S
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”(
s):S
Parameters
Section titled “Parameters”S
Returns
Section titled “Returns”S