Scala for-comprehension with tuple decomposition
for { a <- Some(1) b <- Some(2) } yield (a, b) returns Some((1, 2)) for { a <- Right(1).right b <- Left(2).left } yield (a, b) returns Left((1, 2)) Now I want to decompose t...