( f: (input: NonEmptyReadonlyArray<In>) => Effect.Effect<X, E, R> )
| 1827 | * @since 4.0.0 |
| 1828 | */ |
| 1829 | export const forEachArray = <In, X, E, R>( |
| 1830 | f: (input: NonEmptyReadonlyArray<In>) => Effect.Effect<X, E, R> |
| 1831 | ): Sink<void, In, never, E, R> => |
| 1832 | fromTransform((upstream) => |
| 1833 | upstream.pipe( |
| 1834 | Effect.flatMap(f), |
| 1835 | Effect.forever({ disableYield: true }), |
| 1836 | Pull.catchDone(() => endVoid) |
| 1837 | ) |
| 1838 | ) |
| 1839 | |
| 1840 | /** |
| 1841 | * Runs an effectful function for each input element while it returns `true`. |
no test coverage detected