Can I use \\/ type of scalaz to accumulate failure

2019-06-25 05:54发布

问题:

I know that \/ (disjunction type) in scalaz can be used to "fail fast", i.e. return the first failure in a sequence of functions calls. What if I want to "fail slow", i.e. accumulate the failures ? I can use Validation of scalaz.

Now I wonder if \/ (disjunction type) provides any built-in support for accumulating failures.