Rename copyToArrayImpl to collectionToArray

This commit is contained in:
Abduqodiri Qurbonzoda
2023-07-25 18:45:06 +03:00
committed by Space Team
parent 7010bf2c20
commit 7fc90c02f1
6 changed files with 12 additions and 14 deletions
@@ -33,9 +33,9 @@ expect fun <T> MutableList<T>.sortWith(comparator: Comparator<in T>): Unit
public expect fun <T, K> Grouping<T, K>.eachCount(): Map<K, Int>
// public expect inline fun <T, K> Grouping<T, K>.eachSumOf(valueSelector: (T) -> Int): Map<K, Int>
internal expect fun copyToArrayImpl(collection: Collection<*>): Array<Any?>
internal expect fun collectionToArray(collection: Collection<*>): Array<Any?>
internal expect fun <T> copyToArrayImpl(collection: Collection<*>, array: Array<T>): Array<T>
internal expect fun <T> collectionToArray(collection: Collection<*>, array: Array<T>): Array<T>
internal expect fun <T> arrayOfNulls(reference: Array<T>, size: Int): Array<T>
internal expect fun <K, V> Map<K, V>.toSingletonMapOrSelf(): Map<K, V>