Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
→{{header|Scala}}
Line 3,356:
}</lang>
<lang scala>
def bubbleSort(xt: List[Int]) = {
@tailrec
def bubble(xs: List[Int], rest: List[Int], sorted: List[Int]): List[Int] = xs match {
|