Package: effect
Module: UndefinedOr
Creates a Reducer for A | undefined by wrapping an existing reducer with
fail-fast semantics.
When to use
Use to wrap an existing Reducer so any undefined value aborts the entire
reduction result.
Details
initialValueundefined, the reduction returns undefinedSee
makeCombinerFailFast if you only have a Combiner and want to
lift it to UndefinedOr values.Signature
declare const makeReducerFailFast: <A>(reducer: Reducer.Reducer<A>) => Reducer.Reducer<A | undefined>
Since v4.0.0