Indeed. However in Scala at least zip ends up giving you a List instead of an Option. for {} yield seems to do the trick scala> val a = Some("A") a: Some[String] = Some(A) scala> val b = Some(1) b: Some[Int] = Some(1)…
Indeed. However in Scala at least zip ends up giving you a List instead of an Option. for {} yield seems to do the trick scala> val a = Some("A") a: Some[String] = Some(A) scala> val b = Some(1) b: Some[Int] = Some(1)…