按照http://www.simplyscala.com/上的一个简单示例,我得到:
scala> val lst=List(1,7,2,8,5,6,3,9,14,12,4,10)
lst: List[Int] = List(1, 7, 2, 8, 5, 6, 3, 9, 14, 12, 4, 10)
scala> lst.sort(_>_)
<console>:9: error: value sort is not a member of List[Int]
lst.sort(_>_)
怎么了?谢谢!