Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

scala order list

scala> List(10, 5, 8, 1, 7).sortWith(_ > _)
res2: List[Int] = List(10, 8, 7, 5, 1)
 
PREVIOUS NEXT
Tagged: #scala #order #list
ADD COMMENT
Topic
Name
9+1 =