Jump to content

Sorting algorithms/Permutation sort: Difference between revisions

→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(Added Kotlin)
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 858:
 
=={{header|Kotlin}}==
<lang scala>// version 1.1.12
 
fun <T : Comparable<T>> isSorted(list: List<T>): Boolean {
Line 880:
}
}
return perms
}
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.