Provide MutableList.fill for JS, annotate new API with @SinceKotlin

#KT-8823 #KT-9010
This commit is contained in:
Ilya Gorbunov
2017-06-09 01:29:29 +03:00
parent bb22d6647b
commit a8fef3a385
4 changed files with 19 additions and 1 deletions
@@ -149,6 +149,8 @@ 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")
expect fun <T> MutableList<T>.fill(value: T): Unit
expect fun <T : Comparable<T>> MutableList<T>.sort(): Unit
expect fun <T> MutableList<T>.sortWith(comparator: Comparator<in T>): Unit