Is there a sequence function for Try objects in scalaz?
1 answer
You can use the same function sequence
if you have Try monad from scalaz-outlaws in scope.
(As explained in the comments, this code violates the linking laws of the functor and therefore may lead to unexpected behavior when used with some functions. It should be fine for your use case though)
+6
source to share