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