(combiner: Combiner.Combiner<A>)
| 198 | * @since 4.0.0 |
| 199 | */ |
| 200 | export 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 |
no test coverage detected