/** * Returns a new effect that will pass the success value of this effect to the * provided callback. If this effect fails, then the failure will be ignored. * * @tsplus static effect/core/io/Effect.Aspects forEachEffect * @tsplus pipeable effect/core/io/Effect forEachEffect */ export function forEachEffect(f: (a: A) => Effect) { return (self: Effect): Effect> => self.foldCauseEffect( () => Effect.none, (a) => f(a).map(Maybe.some) ) }