Option Type, a Scala language concept
Last updated
The 'Option' type is used to describe a computation that either has a result or does not. In Scala, you can 'chain' Option processing, combine with lists and other data structures. For example, you can also turn a pattern-match into a function that return an Option, and vice-versa!
There's more!
To see the rest of the Scala concept, and all our other concepts for free, Register (free).