I am new to scala !
My question is, if there is case class that contains a member
myItem:Option[String]
When i construct the class,
Option(x) is basically just saying if (x != null) Some(x) else None
Option(x)
if (x != null) Some(x) else None
See line 25 of the Source code:
def apply[A](x: A): Option[A] = if (x == null) None else Some(x)