Sorting algorithms/Permutation sort: Difference between revisions

Content added Content deleted
(Added Kotlin)
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 858: Line 858:


=={{header|Kotlin}}==
=={{header|Kotlin}}==
<lang scala>// version 1.1.1
<lang scala>// version 1.1.2


fun <T : Comparable<T>> isSorted(list: List<T>): Boolean {
fun <T : Comparable<T>> isSorted(list: List<T>): Boolean {
Line 880: Line 880:
}
}
}
}
return perms
return perms
}
}