I’m migrating an old codebase from 1.1.5 to 2.1.2....
# arrow
j
I’m migrating an old codebase from 1.1.5 to 2.1.2. What’s a good replacement for
parTraverse
? I see the migration guide recommands
mapOrAccumulate
but does it have the
parrallelle
capabilities too?
s
Hey @jean, Arrow Fx Coroutines offers
parMapOrAccumulate
as a more powerful operator instead of
parTraverse
j
Ok, I’m probably missing a dependency then, my IDE couldn’t find anything. Thanks!
s
implementation("io.arrow-kt:arrow-fx-coroutines:2.1.2")
it's included in this one.
👍🏻 1
j
Hi Simon! What’s the way of converting a
List<Either<L, R>>
to a
Either<L, List<R>>
with 2.x? I see in a previous thread that you recommended
sequenceEither
, is that still the correct way? I can’t find it in the documentation
j
Thanks!
kodee loving 1