Can I use \/ type of scalaz to accumulate failures?

醉酒当歌 提交于 2020-01-03 15:33:26

问题


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.

来源:https://stackoverflow.com/questions/22755577/can-i-use-type-of-scalaz-to-accumulate-failures

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!