Join Slack
Powered by
I think you need to cast like `request.map { Eith...
# arrow
t
thanh
09/18/2019, 6:12 PM
I think you need to cast like
request.map { Either.right(it) as Either<E,A>}.onErrorReturn { Either.left(it) }
p
pakoito
09/18/2019, 7:18 PM
there's no need to cast, just hint the other type
t
thanh
09/18/2019, 7:29 PM
oh, so I did bad things 😄
p
pakoito
09/18/2019, 7:32 PM
tsch tsch tsch
😂 1
4
Views
Open in Slack
Previous
Next