`Apply`'s `mapN` takes in at most 10 params (0.10....
# arrow
i
`Apply`'s
mapN
takes in at most 10 params (0.10.5), any tips how to workaround a case where there's more than 10
previously I used
ap
but that approach has issues with kotlin 1.4 new type inference
p
just nest them 😄
☝️ 1
j
^^ Either nest them or manually add higher arities, for reference the implementation is here: https://github.com/arrow-kt/arrow-core/blob/master/arrow-core-data/src/main/kotlin/arrow/typeclasses/Apply.kt
i
do you have some simple example of nesting?
j
Copy code
mapN(a1, a2, tupledN(a3, a4)) { (a, b, cd) -> ... }
Something like this. Not the prettiest, but it'll work
i
ok, thanks