Slide 12
Slide 12 text
裏返しとして
型が合うような関数を頑張って探す
12
scala> val results = Seq(Left(1), Right(2))
val results: Seq[scala.util.Either[Int,Int]] = List(Left(1),
Right(2))
scala> results.filter(_.isLeft)
val res1: Seq[scala.util.Either[Int,Int]] = List(Left(1))
これじゃダメ