Join Slack
Powered by
you'd ideally use either applicative map or monad ...
# arrow
j
Jannis
04/12/2019, 6:12 PM
you'd ideally use either applicative map or monad comprehensions depending on what you want to do. I think applicative map is what you need here:
Copy code
Either.applicative().map( either1, either2, ... ) { (res1, res2, ...) -> Do something here }
Note this will short curcuit on a left, if that is not what you want take a look at the Validated datatype
arrow
1
Open in Slack
Previous
Next