Say I have a val s: Option[Option[String]]. It can thus have the following values:
val s: Option[Option[String]]
Some(Some(\"foo\")) Some(None) None
Some(Some(\"foo\"))
Some(None)
None
s.flatten
followed by a bunch of characters to get me up to the minimum that stackoverflow allows