-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
Milestone
Description
Not sure if this makes sense, but should there be a helper function that can turn something like a Iterable<Ior<S, T>> to an Ior<U<S>, V<T>>.
As a real use case (and maybe you could tell me an alternative to my current implementation if the functionality exists), I take a List<Msg>, do stuff to get a List<Tuple2<Msg, Try<Out, Exception>>>, then collect/accumulate to get a Tuple2<List<Tuple2<Msg, Out>>, List<Tuple2<Msg, Exception>>>. I feel like I could simplify this with an accumulateBoth Ior option, but perhaps there's already an easier way and I don't know about it.