Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
→{{header|Kotlin}}: Remove redundant initialisation
(Initial Kotlin implementation) |
(→{{header|Kotlin}}: Remove redundant initialisation) |
||
Line 1,546:
<lang kotlin>fun <T> bubbleSort(a : Array<T>, c: Comparator<T>) {
var changed
do {
changed = false
|