Scala Language Option Class

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • class Some[+T](value: T) extends Option[T]

  • object None extends Option[Nothing]

  • Option[T](value: T)

    Constructor to create either a Some(value) or None as appropriate for the value provided.



Got any Scala Language Question?