Answers for "scala order list"

0

scala order list

scala> List(10, 5, 8, 1, 7).sortWith(_ > _)
res2: List[Int] = List(10, 8, 7, 5, 1)
Posted by: Guest on April-22-2022

Code answers related to "Scala"

Browse Popular Code Answers by Language