Slide 76
Slide 76 text
Either type
sealed abstract class Either[+A, +B]
final case class Right[+A, +B](value: B) extends Either[A, B]
final case class Left[+A, +B](value: A) extends Either[A, B]
Either is right-biased @since Scala 2.12 and could be used in for comprehensions
Either in method return type says:
“Function may throw and here is the type of possible error”
76