| changeset 415 | 368556c8df56 |
| parent 375 | d886c0fd7374 |
| child 445 | 160cbb09027f |
| 414:78cb8e9a9d17 | 415:368556c8df56 |
|---|---|
1 // Scala Lecture 3 |
1 // Scala Lecture 3 |
2 //================= |
2 //================= |
3 |
|
3 |
4 |
4 |
5 |
5 // naive quicksort with "On" function |
6 // naive quicksort with "On" function |
6 |
7 |
7 def sortOn(f: Int => Int, xs: List[Int]) : List[Int] = { |
8 def sortOn(f: Int => Int, xs: List[Int]) : List[Int] = { |