Option pattern matching scala gaqid512290640
TheOption” Pattern 7 Apr you could also use pattern matching without the Option The only special support Scala has for Option lies deep in the way.
Option pattern matching scala. Scala Option Cheat is important to observe that it is possible to encapsulate all forms of pattern matching over Option with one simple higher order.
More Thoughts on Scala s Option Class Scala s compiler can also provide a warning if you use pattern matching against an Option class , don t check for