I\'m starting to explore Scala, and one of the things I\'m intrigued by is the Option type and the promise of being able to eliminate null related
Option
null
val list1 = List(Some(1), None, Some(2)) val list2 = list1.flatten // will be: List(1,2)