I have a Tuple2 of List[List[String]] and I\'d like to be able to convert the tuple to a list so that I can then use List.transpose().
Tuple2
List[List[String]]
List.transpose()
Using Shapeless -
@ import syntax.std.tuple._ import syntax.std.tuple._ @ (1,2,3).toList res21: List[Int] = List(1, 2, 3) @ (1,2,3,4,3,3,3,3,3,3,3).toList res22: List[Int] = List(1, 2, 3, 4, 3, 3, 3, 3, 3, 3, 3)
Note that type information is not lost using Shapeless's toList.
toList