I have the following array:
val input = Array(Array(), Array(22,33), Array(), Array(77), Array(88,99))
It contains empty arrays. I want to get a flattened array without any empty arrays, so the output should be:
Array(22,33,77,88,99)
I tried the flatten function, but it seems to not work with the type of Array[_ <: Int].