On a related note, it seems `parMapN` and `parTupl...
# arrow
a
On a related note, it seems
parMapN
and
parTupledN
supports only arity 3, but I need to invoke it with 4 arguments. 😞 Should this be extended to at least arity 5?
s
Hey @Attila Domokos, Good point! Yes we should actually support up to 9 arity, like we did in Arrow Fx. This is not there yet since I started development on this library with only a dependency on the Kotlin Std to I didn't have
TupleN
available.
a
I have not checked, does
arrow.fx.coroutines
have now dependency on
arrow.core
?
To start using
TupleN
.
s
Yes, it does 🙂 Finding the correct encoding for implementing
IO
as
suspend
was actually very tricky, or at least it took my quite a while to figure it out 😅
a
I'll take a look at it, thanks Simon!
s
Awesome, thanks Attila!
a
Had to use 2
parMapN
for 4 parallel calls, and destructure pairs of pairs. Too complex for a simple use case.
s
Yes, 100% agreed!! That's also why I made this PR, so you don't have to destructure anymore and can also simply pass method references. https://github.com/arrow-kt/arrow-fx/pull/249
👍 1