/** * Feeds elements of type `A` to `f` until it succeeds. Returns first success * or the accumulation of all errors. * * @tsplus static effect/core/io/Effect.Ops validateFirstPar */ export function validateFirstPar( as: Collection, f: (a: A) => Effect ): Effect, B> { return Effect.forEachPar(as, (a) => f(a).flip).flip }