How can I convert an array of arrays of doubles to just an array of doubles using Scala 2.10.4?
Convert: Array[Array[Double]] => Array[Double]
Use flatten
:
val r: Array[Double] = doubleDouble.flatten
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With