(combiner: Combiner.Combiner<A>)
| 2510 | * @since 4.0.0 |
| 2511 | */ |
| 2512 | export function makeCombinerFailFast<A>(combiner: Combiner.Combiner<A>): Combiner.Combiner<Option<A>> { |
| 2513 | return Combiner.make((self, that) => { |
| 2514 | if (isNone(self) || isNone(that)) return none() |
| 2515 | return some(combiner.combine(self.value, that.value)) |
| 2516 | }) |
| 2517 | } |
| 2518 | |
| 2519 | /** |
| 2520 | * Creates a `Reducer` for `Option<A>` by lifting an existing `Reducer` with |