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(). Is there any way to do this? Also, I know it’s a Pair, though I’m always a fan of generic solutions.
I have a Tuple2 of List[List[String]] and I’d like to be able to convert
Share
Works with any tuple (scala 2.8):
Scala 2.7:
Not sure how to maintain type info for a general Product or Tuple, but for Tuple2:
You could, of course, define similar type-safe conversions for all the Tuples (up to 22).