How to reduce Seq[Either[A,B]] to Either[A,Seq[B]]?

前端 未结 8 1401
孤城傲影
孤城傲影 2020-12-05 01:31

Given a sequence of eithers Seq[Either[String,A]] with Left being an error message. I want to obtain an Either[String,Seq[A]] where I

8条回答
提交回复
热议问题