def clu(allcenter:Array[Int], data:Array[Array[Double]], cnum : Int) = {
val alldata = (data, allcenter).zipped.map { case (a, b) => b.toDouble +: a}
after this I want to filter alldata's first element and get the remain element
like this:
alldata.fliter(_._1 == 10).map(case(a,b,c) => (b,c)) //it's way in tuple
how can I rewrite above statement in array way? thank you!