Is there a way to map a tuple?
Tried the following but not working
(a, b).map(v1,v2 => SomeFunction(v1, v2)
Possible alternative is case class
(a, b) match {
case (Some(v1), Some(v2)) => SomeFunction(a, b)
case _ => None
}
Wondering if there's other alternative.