Suppose I have Seqeither pairs (or tuples):
Seq
val s = Seq((1, "1"), (2, "2"), (3, "3"))
How can i do:
val (ints, strs) = (s.map(_._1), s.map(_._2))
Without repeating Seq twice?
Here
val (ints, strs) = seq.unzip