Angeblich soll Ich habe eine Liste von Tupeln:Integer Tupels Stringtupel
tuple1: List[(String, String)] = List((0,3), (3,6), (6,12), (12,14), (14,15))
Ich habe versucht, die folgenden:
tuple1.unzip match { case(l1, l2) => (l1.toString, l2.toString)}
res9: (String, String) = (List(0, 3, 6, 12, 14),List(3, 6, 12, 14, 15))
tuple1 map(_.toString)
res5: List[String] = List((0,3), (3,6), (6,12), (12,14), (14,15))
Beide
tuple1: List[(Int, Int)] = List((0,3), (3,6), (6,12), (12,14), (14,15))
Wie kann ich es ändern sind nicht das Ergebnis, das ich suche.