Inline swap function, do not use deprecated floor.

This commit is contained in:
Ilya Gorbunov
2017-10-05 05:40:33 +03:00
parent e640867238
commit 781ca6d2b5
2 changed files with 16 additions and 17 deletions
@@ -149,12 +149,15 @@ expect inline fun <reified T> Array<out T>?.orEmpty(): Array<out T>
expect inline fun <reified T> Collection<T>.toTypedArray(): Array<T>
@SinceKotlin("1.2") header fun <T> MutableList<T>.fill(value: T): Unit
@SinceKotlin("1.2") header fun <T> MutableList<T>.shuffle(): Unit
@SinceKotlin("1.2") header fun <T> Iterable<T>.shuffled(): List<T>
@SinceKotlin("1.2")
expect fun <T> MutableList<T>.fill(value: T): Unit
@SinceKotlin("1.2")
expect fun <T> MutableList<T>.shuffle(): Unit
@SinceKotlin("1.2")
expect fun <T> Iterable<T>.shuffled(): List<T>
header fun <T : Comparable<T>> MutableList<T>.sort(): Unit
header fun <T> MutableList<T>.sortWith(comparator: Comparator<in T>): Unit
expect fun <T : Comparable<T>> MutableList<T>.sort(): Unit
expect fun <T> MutableList<T>.sortWith(comparator: Comparator<in T>): Unit
// from Grouping.kt