If you want to get rid of the options at the same time, you can use flatten
:
scala> someList.flatten
res0: List[String] = List(Hello, Goodbye)
If you want to get rid of the options at the same time, you can use flatten
:
scala> someList.flatten
res0: List[String] = List(Hello, Goodbye)