Xuc Xiem
val eitherList: List<Either<Exception, String>> = TODO()
List<String>
eitherList .filterIsInstance<Either.Right<String>>() .fold(emptyList()) { acc, right -> right.fold({ acc }, { acc + it }) }
Tesserakt
eitherList.filterMap { it.toOption() }
toOption
A modern programming language that makes developers happier.