In Scala I can flatten a collection using :
val array = Array(List(\"1,2,3\").iterator,List(\"1,4,5\").iterator)
Use flatMap and the identity Predef, this is more readable than using x => x, e.g.
flatMap
identity
Predef
x => x
myRdd.flatMap(identity)