`Try.applicative().map(a(), b()) { a, b -> .. }...
# arrow
s
Try.applicative().map(a(), b()) { a, b -> .. }
this should work 🙂
d
So this returns
Kind<ForTry, Float>
instead of
Try<Float>
for the example above. How can I convert
Kind<ForTry, A>
to
Try<A>
?
s
Oh, I'm sorry I forgot to mention this. You need to apply
.fix()
at the end. This is due to the higher kinded emulation we use to built these abstractions.
We're working on this as we speak and most likely it'll become
Try.map(....) {}
without the need for fix in the coming version.
So it'll also remove the need to know the typeclasses if you're working with concrete types directly
d
Ahh ok, understood! Thanks for the explanation!
👍 1