(predicate: Predicate<In>)
| 1495 | <In, Out extends In>(refinement: Refinement<In, Out>): Sink<Option.Option<Out>, In, In> |
| 1496 | <In>(predicate: Predicate<In>): Sink<Option.Option<In>, In, In> |
| 1497 | } = <In>(predicate: Predicate<In>): Sink<Option.Option<In>, In, In> => |
| 1498 | reduceWhile( |
| 1499 | Option.none<In>, |
| 1500 | Option.isNone, |
| 1501 | (acc, in_) => predicate(in_) ? Option.some(in_) : acc |
| 1502 | ) |
| 1503 | |
| 1504 | /** |
| 1505 | * Creates a sink containing the first value matched by an effectful predicate. |
nothing calls this directly
no test coverage detected