Drop deprecated merge functions.
This commit is contained in:
@@ -9033,136 +9033,6 @@ public fun <T : Any> Array<out T?>.requireNoNulls(): Array<out T> {
|
||||
return this as Array<out T>
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <T, R, V> Array<out T>.merge(array: Array<out R>, transform: (T, R) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <R, V> BooleanArray.merge(array: Array<out R>, transform: (Boolean, R) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <R, V> ByteArray.merge(array: Array<out R>, transform: (Byte, R) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <R, V> CharArray.merge(array: Array<out R>, transform: (Char, R) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <R, V> DoubleArray.merge(array: Array<out R>, transform: (Double, R) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <R, V> FloatArray.merge(array: Array<out R>, transform: (Float, R) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <R, V> IntArray.merge(array: Array<out R>, transform: (Int, R) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <R, V> LongArray.merge(array: Array<out R>, transform: (Long, R) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <R, V> ShortArray.merge(array: Array<out R>, transform: (Short, R) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <V> BooleanArray.merge(array: BooleanArray, transform: (Boolean, Boolean) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <V> ByteArray.merge(array: ByteArray, transform: (Byte, Byte) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <V> CharArray.merge(array: CharArray, transform: (Char, Char) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <V> DoubleArray.merge(array: DoubleArray, transform: (Double, Double) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <V> FloatArray.merge(array: FloatArray, transform: (Float, Float) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <V> IntArray.merge(array: IntArray, transform: (Int, Int) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <V> LongArray.merge(array: LongArray, transform: (Long, Long) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(array, transform)"))
|
||||
public inline fun <V> ShortArray.merge(array: ShortArray, transform: (Short, Short) -> V): List<V> {
|
||||
return zip(array, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(other, transform)"))
|
||||
public inline fun <T, R, V> Array<out T>.merge(other: Iterable<R>, transform: (T, R) -> V): List<V> {
|
||||
return zip(other, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(other, transform)"))
|
||||
public inline fun <R, V> BooleanArray.merge(other: Iterable<R>, transform: (Boolean, R) -> V): List<V> {
|
||||
return zip(other, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(other, transform)"))
|
||||
public inline fun <R, V> ByteArray.merge(other: Iterable<R>, transform: (Byte, R) -> V): List<V> {
|
||||
return zip(other, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(other, transform)"))
|
||||
public inline fun <R, V> CharArray.merge(other: Iterable<R>, transform: (Char, R) -> V): List<V> {
|
||||
return zip(other, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(other, transform)"))
|
||||
public inline fun <R, V> DoubleArray.merge(other: Iterable<R>, transform: (Double, R) -> V): List<V> {
|
||||
return zip(other, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(other, transform)"))
|
||||
public inline fun <R, V> FloatArray.merge(other: Iterable<R>, transform: (Float, R) -> V): List<V> {
|
||||
return zip(other, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(other, transform)"))
|
||||
public inline fun <R, V> IntArray.merge(other: Iterable<R>, transform: (Int, R) -> V): List<V> {
|
||||
return zip(other, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(other, transform)"))
|
||||
public inline fun <R, V> LongArray.merge(other: Iterable<R>, transform: (Long, R) -> V): List<V> {
|
||||
return zip(other, transform)
|
||||
}
|
||||
|
||||
@Deprecated("Use zip() with transform instead.", ReplaceWith("zip(other, transform)"))
|
||||
public inline fun <R, V> ShortArray.merge(other: Iterable<R>, transform: (Short, R) -> V): List<V> {
|
||||
return zip(other, transform)
|
||||
}
|
||||
|
||||
/**
|
||||
* Splits the original collection into pair of collections,
|
||||
* where *first* collection contains elements for which [predicate] yielded `true`,
|
||||
|
||||
Reference in New Issue
Block a user