(combiner: Combiner.Combiner<A>)
| 2432 | * @since 4.0.0 |
| 2433 | */ |
| 2434 | export function makeCombinerFailFast<A>(combiner: Combiner.Combiner<A>): Combiner.Combiner<Option<A>> { |
| 2435 | return Combiner.make((self, that) => { |
| 2436 | if (isNone(self) || isNone(that)) return none() |
| 2437 | return some(combiner.combine(self.value, that.value)) |
| 2438 | }) |
| 2439 | } |
| 2440 | |
| 2441 | /** |
| 2442 | * Creates a `Reducer` for `Option<A>` by lifting an existing `Reducer` with |