Please explain use of Option's orNull method
Scala's Option class has an orNull method, whose signature is shown below. orNull [A1 >: A](implicit ev : <:<[Null, A1]) : A1 I'm bewildered by the implicit thing. Would somebody please explain how it can be used, ideally with an example? scala> Some(1).orNull <console>:10: error: could not find implicit value for parameter ev: <:<[Null,Int] Some(1).orNull ^ scala> (None : Option[Int]).orNull <console>:10: error: could not find implicit value for parameter ev: <:<[Null,Int] (None : Option[Int]).orNull scala> Some("hi").orNull res21: java.lang.String = hi scala> Some(null : String).orNull res22