MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeCombinerFailFast

Function makeCombinerFailFast

packages/effect/src/UndefinedOr.ts:200–205  ·  view source on GitHub ↗
(combiner: Combiner.Combiner<A>)

Source from the content-addressed store, hash-verified

198 * @since 4.0.0
199 */
200export function makeCombinerFailFast<A>(combiner: Combiner.Combiner<A>): Combiner.Combiner<A | undefined> {
201 return Combiner.make((self, that) => {
202 if (self === undefined || that === undefined) return undefined
203 return combiner.combine(self, that)
204 })
205}
206
207/**
208 * Creates a `Reducer` for `A | undefined` by wrapping an existing reducer with

Callers 1

makeReducerFailFastFunction · 0.70

Calls 2

makeMethod · 0.65
combineMethod · 0.65

Tested by

no test coverage detected