While dealing with Option in Scala what are the things I should be considering to decide whether to map or patten match? For example, if I have Option[MyC
Option
Option[MyC
I would go for this:
myOptionInstance.fold(Nil: List[String])(...)