In scala, how can i create a general purpose function to perform the following operation:
f: List[A] ==> List[Option[A]]
Isn't it as simple as _.map(Option.apply)?
_.map(Option.apply)