Skip to content

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.

S

A

Optional<S, A>

(a): (s) => S

A

(s): S

S

S

pipe(profile, Optional.set(bioOpt)("hello"));