( predicate: (input: In) => Effect.Effect<boolean, E, R> )
| 1491 | * @category constructors |
| 1492 | * @since 4.0.0 |
| 1493 | */ |
| 1494 | export const find: { |
| 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…