September 2018
Intermediate to advanced
398 pages
9h 43m
English
The following is a simplified definition of the Option ADT:
sealed trait Option[+A]case class Some[A](value: A) extends Option[A]case object None extends Option[Nothing]
The Scala SDK provides a more refined implementation; the preceding definition is just for illustrative purpose. This definition implies that Option can be either of the following two types:
Read now
Unlock full access