Not sure what caused this problem: error: '=' expected but ';' found.
val vectors = filtered_data_by_key.map( x => {
var temp
x._2.copyToArray(temp) // Error occurs here
(x._1, temp)
})
var temp
isn't a statement.
If you're trying to declare temp without assigning anything to it, do
var temp :Array[_] = _
But is temp supposed to be an array? then try var temp = Array()
. temp
needs something assigned to it before being passed into copyToArray
. Also as you're not destructively assigning to temp it doesn't need to be a var.
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