title: Scala Intersection of List and Option of list
body: <p>I was trying to do something on scala REPL when i came across this one. Suppose i have a list say</p>
  
  <pre><code>val list1:List[String]=List("test1","test2")
  </code></pre>
  
  <p>and i have something like this </p>
  
  <pre><code>val list2:Option[List[String]]=Some(List("test1"))
  </code></pre>
  
  <p>I was trying my hands on intersect method and tried this </p>
  
  <pre><code>list2.getOrElse(List.empty).intersect(list1)
  </code></pre>
  
  <p>i was expecting the result to be List("test1") instead i got an empty list. What am i missing here?</p>