https://kotlinlang.org logo
#arrow
Title
# arrow
j

João Gabriel Zó

09/23/2022, 5:02 PM
I have a return type
Either<Error, List<A>>
is there a way to map directly into the list without having to
either.map{ it.map { f } }
?
s

simon.vergauwen

09/23/2022, 6:06 PM
That is your best option, yes. Alternatively
bind().map { f }
if you're inside
either { }
j

João Gabriel Zó

09/23/2022, 6:13 PM
alright, thanks!
3 Views