scala> def f(x:String) = null f: (x: String)Null scala> Some("abc") map f res3: Option[Null] = Some(null)
Other options: