Is it possible to convert a vector of heterogeneous vectors to list of Tuple3 in Scala
i.e.
Vector(Vector(1,"a","b"),Vector(2,"b","c")) to List(Tuple3(1,"a","b"),Tuple3(2,"b","c"))
Is it possible to convert a vector of heterogeneous vectors to list of Tuple3 in Scala
i.e.
Vector(Vector(1,"a","b"),Vector(2,"b","c")) to List(Tuple3(1,"a","b"),Tuple3(2,"b","c"))
Explicitly convert every inner
Vector
toTuple3
:If you have vectors of variadic size you can use more general approach:
But it has restriction: max length of vectors is 22.