au.csiro.variantspark.work.TestMax.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of variant-spark_2.11 Show documentation
Show all versions of variant-spark_2.11 Show documentation
Genomic variants interpretation toolkit
The newest version!
package au.csiro.variantspark.work
object TestMax {
def main(argv: Array[String]): Unit = {
println("TestMax")
val testCounts = Array(0, 3, 1, 2, 3)
println(testCounts.zipWithIndex.max._2)
println(testCounts.zipWithIndex.maxBy(_._1)._2)
}
}