Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
→{{header|Scala}}
No edit summary |
|||
Line 2,945:
=={{header|Scala}}==
[[Category:Scala Implementations]]
This slightly more complex version of Bubble Sort avoids errors▼
{{libheader|Scala}}
▲This slightly more complex version of Bubble Sort avoids errors with indices.
<lang scala>def bubbleSort[T](arr: Array[T])(implicit o: Ordering[T]) {
|