mapVarargIndexed

inline fun <T, R> mapVarargIndexed(arg: T, otherArgs: Array<out T>, mapper: (Int, T) -> R): Pair<R, Array<out R>>

Maps the given arg and all elements in otherArgs by the given mapper.

This function is intended for API functions which expect x: T, vararg otherX: T and want to pass the arguments to another function expecting x: R, vararg otherX: R.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapVarargIndexedToBoolean")
inline fun <T> mapVarargIndexed(arg: T, otherArgs: Array<out T>, mapper: (Int, T) -> Boolean): Pair<Boolean, BooleanArray>

Maps the given arg and all elements in otherArgs by the given mapper to Boolean.

This function is intended for API functions which expect x: T, vararg otherX: T and want to pass the arguments to another function expecting x: Boolean, vararg otherX: Boolean.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapBooleanVarargIndexed")
inline fun <R> mapVarargIndexed(arg: Boolean, otherArgs: BooleanArray, mapper: (Int, Boolean) -> R): Pair<R, Array<out R>>

Maps the given arg and all elements in otherArgs by the given mapper.

This function is intended for API functions which expect x: Boolean, vararg otherX: Boolean and want to pass the arguments to another function expecting x: R, vararg otherX: R.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapBooleanVarargIndexedToBoolean")
inline fun mapVarargIndexed(arg: Boolean, otherArgs: BooleanArray, mapper: (Int, Boolean) -> Boolean): Pair<Boolean, BooleanArray>

Maps the given arg and all elements in otherArgs by the given mapper to Boolean.

This function is intended for API functions which expect x: Boolean, vararg otherX: Boolean and want to pass the arguments to another function expecting x: Boolean, vararg otherX: Boolean.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapBooleanVarargIndexedToByte")
inline fun mapVarargIndexed(arg: Boolean, otherArgs: BooleanArray, mapper: (Int, Boolean) -> Byte): Pair<Byte, ByteArray>

Maps the given arg and all elements in otherArgs by the given mapper to Byte.

This function is intended for API functions which expect x: Boolean, vararg otherX: Boolean and want to pass the arguments to another function expecting x: Byte, vararg otherX: Byte.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapBooleanVarargIndexedToChar")
inline fun mapVarargIndexed(arg: Boolean, otherArgs: BooleanArray, mapper: (Int, Boolean) -> Char): Pair<Char, CharArray>

Maps the given arg and all elements in otherArgs by the given mapper to Char.

This function is intended for API functions which expect x: Boolean, vararg otherX: Boolean and want to pass the arguments to another function expecting x: Char, vararg otherX: Char.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapBooleanVarargIndexedToShort")
inline fun mapVarargIndexed(arg: Boolean, otherArgs: BooleanArray, mapper: (Int, Boolean) -> Short): Pair<Short, ShortArray>

Maps the given arg and all elements in otherArgs by the given mapper to Short.

This function is intended for API functions which expect x: Boolean, vararg otherX: Boolean and want to pass the arguments to another function expecting x: Short, vararg otherX: Short.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapBooleanVarargIndexedToInt")
inline fun mapVarargIndexed(arg: Boolean, otherArgs: BooleanArray, mapper: (Int, Boolean) -> Int): Pair<Int, IntArray>

Maps the given arg and all elements in otherArgs by the given mapper to Int.

This function is intended for API functions which expect x: Boolean, vararg otherX: Boolean and want to pass the arguments to another function expecting x: Int, vararg otherX: Int.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapBooleanVarargIndexedToLong")
inline fun mapVarargIndexed(arg: Boolean, otherArgs: BooleanArray, mapper: (Int, Boolean) -> Long): Pair<Long, LongArray>

Maps the given arg and all elements in otherArgs by the given mapper to Long.

This function is intended for API functions which expect x: Boolean, vararg otherX: Boolean and want to pass the arguments to another function expecting x: Long, vararg otherX: Long.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapBooleanVarargIndexedToFloat")
inline fun mapVarargIndexed(arg: Boolean, otherArgs: BooleanArray, mapper: (Int, Boolean) -> Float): Pair<Float, FloatArray>

Maps the given arg and all elements in otherArgs by the given mapper to Float.

This function is intended for API functions which expect x: Boolean, vararg otherX: Boolean and want to pass the arguments to another function expecting x: Float, vararg otherX: Float.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapBooleanVarargIndexedToDouble")
inline fun mapVarargIndexed(arg: Boolean, otherArgs: BooleanArray, mapper: (Int, Boolean) -> Double): Pair<Double, DoubleArray>

Maps the given arg and all elements in otherArgs by the given mapper to Double.

This function is intended for API functions which expect x: Boolean, vararg otherX: Boolean and want to pass the arguments to another function expecting x: Double, vararg otherX: Double.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapVarargIndexedToByte")
inline fun <T> mapVarargIndexed(arg: T, otherArgs: Array<out T>, mapper: (Int, T) -> Byte): Pair<Byte, ByteArray>

Maps the given arg and all elements in otherArgs by the given mapper to Byte.

This function is intended for API functions which expect x: T, vararg otherX: T and want to pass the arguments to another function expecting x: Byte, vararg otherX: Byte.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapByteVarargIndexed")
inline fun <R> mapVarargIndexed(arg: Byte, otherArgs: ByteArray, mapper: (Int, Byte) -> R): Pair<R, Array<out R>>

Maps the given arg and all elements in otherArgs by the given mapper.

This function is intended for API functions which expect x: Byte, vararg otherX: Byte and want to pass the arguments to another function expecting x: R, vararg otherX: R.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapByteVarargIndexedToBoolean")
inline fun mapVarargIndexed(arg: Byte, otherArgs: ByteArray, mapper: (Int, Byte) -> Boolean): Pair<Boolean, BooleanArray>

Maps the given arg and all elements in otherArgs by the given mapper to Boolean.

This function is intended for API functions which expect x: Byte, vararg otherX: Byte and want to pass the arguments to another function expecting x: Boolean, vararg otherX: Boolean.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapByteVarargIndexedToByte")
inline fun mapVarargIndexed(arg: Byte, otherArgs: ByteArray, mapper: (Int, Byte) -> Byte): Pair<Byte, ByteArray>

Maps the given arg and all elements in otherArgs by the given mapper to Byte.

This function is intended for API functions which expect x: Byte, vararg otherX: Byte and want to pass the arguments to another function expecting x: Byte, vararg otherX: Byte.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapByteVarargIndexedToChar")
inline fun mapVarargIndexed(arg: Byte, otherArgs: ByteArray, mapper: (Int, Byte) -> Char): Pair<Char, CharArray>

Maps the given arg and all elements in otherArgs by the given mapper to Char.

This function is intended for API functions which expect x: Byte, vararg otherX: Byte and want to pass the arguments to another function expecting x: Char, vararg otherX: Char.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapByteVarargIndexedToShort")
inline fun mapVarargIndexed(arg: Byte, otherArgs: ByteArray, mapper: (Int, Byte) -> Short): Pair<Short, ShortArray>

Maps the given arg and all elements in otherArgs by the given mapper to Short.

This function is intended for API functions which expect x: Byte, vararg otherX: Byte and want to pass the arguments to another function expecting x: Short, vararg otherX: Short.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapByteVarargIndexedToInt")
inline fun mapVarargIndexed(arg: Byte, otherArgs: ByteArray, mapper: (Int, Byte) -> Int): Pair<Int, IntArray>

Maps the given arg and all elements in otherArgs by the given mapper to Int.

This function is intended for API functions which expect x: Byte, vararg otherX: Byte and want to pass the arguments to another function expecting x: Int, vararg otherX: Int.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapByteVarargIndexedToLong")
inline fun mapVarargIndexed(arg: Byte, otherArgs: ByteArray, mapper: (Int, Byte) -> Long): Pair<Long, LongArray>

Maps the given arg and all elements in otherArgs by the given mapper to Long.

This function is intended for API functions which expect x: Byte, vararg otherX: Byte and want to pass the arguments to another function expecting x: Long, vararg otherX: Long.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapByteVarargIndexedToFloat")
inline fun mapVarargIndexed(arg: Byte, otherArgs: ByteArray, mapper: (Int, Byte) -> Float): Pair<Float, FloatArray>

Maps the given arg and all elements in otherArgs by the given mapper to Float.

This function is intended for API functions which expect x: Byte, vararg otherX: Byte and want to pass the arguments to another function expecting x: Float, vararg otherX: Float.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapByteVarargIndexedToDouble")
inline fun mapVarargIndexed(arg: Byte, otherArgs: ByteArray, mapper: (Int, Byte) -> Double): Pair<Double, DoubleArray>

Maps the given arg and all elements in otherArgs by the given mapper to Double.

This function is intended for API functions which expect x: Byte, vararg otherX: Byte and want to pass the arguments to another function expecting x: Double, vararg otherX: Double.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapVarargIndexedToChar")
inline fun <T> mapVarargIndexed(arg: T, otherArgs: Array<out T>, mapper: (Int, T) -> Char): Pair<Char, CharArray>

Maps the given arg and all elements in otherArgs by the given mapper to Char.

This function is intended for API functions which expect x: T, vararg otherX: T and want to pass the arguments to another function expecting x: Char, vararg otherX: Char.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapCharVarargIndexed")
inline fun <R> mapVarargIndexed(arg: Char, otherArgs: CharArray, mapper: (Int, Char) -> R): Pair<R, Array<out R>>

Maps the given arg and all elements in otherArgs by the given mapper.

This function is intended for API functions which expect x: Char, vararg otherX: Char and want to pass the arguments to another function expecting x: R, vararg otherX: R.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapCharVarargIndexedToBoolean")
inline fun mapVarargIndexed(arg: Char, otherArgs: CharArray, mapper: (Int, Char) -> Boolean): Pair<Boolean, BooleanArray>

Maps the given arg and all elements in otherArgs by the given mapper to Boolean.

This function is intended for API functions which expect x: Char, vararg otherX: Char and want to pass the arguments to another function expecting x: Boolean, vararg otherX: Boolean.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapCharVarargIndexedToByte")
inline fun mapVarargIndexed(arg: Char, otherArgs: CharArray, mapper: (Int, Char) -> Byte): Pair<Byte, ByteArray>

Maps the given arg and all elements in otherArgs by the given mapper to Byte.

This function is intended for API functions which expect x: Char, vararg otherX: Char and want to pass the arguments to another function expecting x: Byte, vararg otherX: Byte.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapCharVarargIndexedToChar")
inline fun mapVarargIndexed(arg: Char, otherArgs: CharArray, mapper: (Int, Char) -> Char): Pair<Char, CharArray>

Maps the given arg and all elements in otherArgs by the given mapper to Char.

This function is intended for API functions which expect x: Char, vararg otherX: Char and want to pass the arguments to another function expecting x: Char, vararg otherX: Char.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapCharVarargIndexedToShort")
inline fun mapVarargIndexed(arg: Char, otherArgs: CharArray, mapper: (Int, Char) -> Short): Pair<Short, ShortArray>

Maps the given arg and all elements in otherArgs by the given mapper to Short.

This function is intended for API functions which expect x: Char, vararg otherX: Char and want to pass the arguments to another function expecting x: Short, vararg otherX: Short.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapCharVarargIndexedToInt")
inline fun mapVarargIndexed(arg: Char, otherArgs: CharArray, mapper: (Int, Char) -> Int): Pair<Int, IntArray>

Maps the given arg and all elements in otherArgs by the given mapper to Int.

This function is intended for API functions which expect x: Char, vararg otherX: Char and want to pass the arguments to another function expecting x: Int, vararg otherX: Int.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapCharVarargIndexedToLong")
inline fun mapVarargIndexed(arg: Char, otherArgs: CharArray, mapper: (Int, Char) -> Long): Pair<Long, LongArray>

Maps the given arg and all elements in otherArgs by the given mapper to Long.

This function is intended for API functions which expect x: Char, vararg otherX: Char and want to pass the arguments to another function expecting x: Long, vararg otherX: Long.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapCharVarargIndexedToFloat")
inline fun mapVarargIndexed(arg: Char, otherArgs: CharArray, mapper: (Int, Char) -> Float): Pair<Float, FloatArray>

Maps the given arg and all elements in otherArgs by the given mapper to Float.

This function is intended for API functions which expect x: Char, vararg otherX: Char and want to pass the arguments to another function expecting x: Float, vararg otherX: Float.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapCharVarargIndexedToDouble")
inline fun mapVarargIndexed(arg: Char, otherArgs: CharArray, mapper: (Int, Char) -> Double): Pair<Double, DoubleArray>

Maps the given arg and all elements in otherArgs by the given mapper to Double.

This function is intended for API functions which expect x: Char, vararg otherX: Char and want to pass the arguments to another function expecting x: Double, vararg otherX: Double.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapVarargIndexedToShort")
inline fun <T> mapVarargIndexed(arg: T, otherArgs: Array<out T>, mapper: (Int, T) -> Short): Pair<Short, ShortArray>

Maps the given arg and all elements in otherArgs by the given mapper to Short.

This function is intended for API functions which expect x: T, vararg otherX: T and want to pass the arguments to another function expecting x: Short, vararg otherX: Short.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapShortVarargIndexed")
inline fun <R> mapVarargIndexed(arg: Short, otherArgs: ShortArray, mapper: (Int, Short) -> R): Pair<R, Array<out R>>

Maps the given arg and all elements in otherArgs by the given mapper.

This function is intended for API functions which expect x: Short, vararg otherX: Short and want to pass the arguments to another function expecting x: R, vararg otherX: R.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapShortVarargIndexedToBoolean")
inline fun mapVarargIndexed(arg: Short, otherArgs: ShortArray, mapper: (Int, Short) -> Boolean): Pair<Boolean, BooleanArray>

Maps the given arg and all elements in otherArgs by the given mapper to Boolean.

This function is intended for API functions which expect x: Short, vararg otherX: Short and want to pass the arguments to another function expecting x: Boolean, vararg otherX: Boolean.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapShortVarargIndexedToByte")
inline fun mapVarargIndexed(arg: Short, otherArgs: ShortArray, mapper: (Int, Short) -> Byte): Pair<Byte, ByteArray>

Maps the given arg and all elements in otherArgs by the given mapper to Byte.

This function is intended for API functions which expect x: Short, vararg otherX: Short and want to pass the arguments to another function expecting x: Byte, vararg otherX: Byte.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapShortVarargIndexedToChar")
inline fun mapVarargIndexed(arg: Short, otherArgs: ShortArray, mapper: (Int, Short) -> Char): Pair<Char, CharArray>

Maps the given arg and all elements in otherArgs by the given mapper to Char.

This function is intended for API functions which expect x: Short, vararg otherX: Short and want to pass the arguments to another function expecting x: Char, vararg otherX: Char.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapShortVarargIndexedToShort")
inline fun mapVarargIndexed(arg: Short, otherArgs: ShortArray, mapper: (Int, Short) -> Short): Pair<Short, ShortArray>

Maps the given arg and all elements in otherArgs by the given mapper to Short.

This function is intended for API functions which expect x: Short, vararg otherX: Short and want to pass the arguments to another function expecting x: Short, vararg otherX: Short.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapShortVarargIndexedToInt")
inline fun mapVarargIndexed(arg: Short, otherArgs: ShortArray, mapper: (Int, Short) -> Int): Pair<Int, IntArray>

Maps the given arg and all elements in otherArgs by the given mapper to Int.

This function is intended for API functions which expect x: Short, vararg otherX: Short and want to pass the arguments to another function expecting x: Int, vararg otherX: Int.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapShortVarargIndexedToLong")
inline fun mapVarargIndexed(arg: Short, otherArgs: ShortArray, mapper: (Int, Short) -> Long): Pair<Long, LongArray>

Maps the given arg and all elements in otherArgs by the given mapper to Long.

This function is intended for API functions which expect x: Short, vararg otherX: Short and want to pass the arguments to another function expecting x: Long, vararg otherX: Long.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapShortVarargIndexedToFloat")
inline fun mapVarargIndexed(arg: Short, otherArgs: ShortArray, mapper: (Int, Short) -> Float): Pair<Float, FloatArray>

Maps the given arg and all elements in otherArgs by the given mapper to Float.

This function is intended for API functions which expect x: Short, vararg otherX: Short and want to pass the arguments to another function expecting x: Float, vararg otherX: Float.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapShortVarargIndexedToDouble")
inline fun mapVarargIndexed(arg: Short, otherArgs: ShortArray, mapper: (Int, Short) -> Double): Pair<Double, DoubleArray>

Maps the given arg and all elements in otherArgs by the given mapper to Double.

This function is intended for API functions which expect x: Short, vararg otherX: Short and want to pass the arguments to another function expecting x: Double, vararg otherX: Double.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapVarargIndexedToInt")
inline fun <T> mapVarargIndexed(arg: T, otherArgs: Array<out T>, mapper: (Int, T) -> Int): Pair<Int, IntArray>

Maps the given arg and all elements in otherArgs by the given mapper to Int.

This function is intended for API functions which expect x: T, vararg otherX: T and want to pass the arguments to another function expecting x: Int, vararg otherX: Int.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapIntVarargIndexed")
inline fun <R> mapVarargIndexed(arg: Int, otherArgs: IntArray, mapper: (Int, Int) -> R): Pair<R, Array<out R>>

Maps the given arg and all elements in otherArgs by the given mapper.

This function is intended for API functions which expect x: Int, vararg otherX: Int and want to pass the arguments to another function expecting x: R, vararg otherX: R.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapIntVarargIndexedToBoolean")
inline fun mapVarargIndexed(arg: Int, otherArgs: IntArray, mapper: (Int, Int) -> Boolean): Pair<Boolean, BooleanArray>

Maps the given arg and all elements in otherArgs by the given mapper to Boolean.

This function is intended for API functions which expect x: Int, vararg otherX: Int and want to pass the arguments to another function expecting x: Boolean, vararg otherX: Boolean.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapIntVarargIndexedToByte")
inline fun mapVarargIndexed(arg: Int, otherArgs: IntArray, mapper: (Int, Int) -> Byte): Pair<Byte, ByteArray>

Maps the given arg and all elements in otherArgs by the given mapper to Byte.

This function is intended for API functions which expect x: Int, vararg otherX: Int and want to pass the arguments to another function expecting x: Byte, vararg otherX: Byte.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapIntVarargIndexedToChar")
inline fun mapVarargIndexed(arg: Int, otherArgs: IntArray, mapper: (Int, Int) -> Char): Pair<Char, CharArray>

Maps the given arg and all elements in otherArgs by the given mapper to Char.

This function is intended for API functions which expect x: Int, vararg otherX: Int and want to pass the arguments to another function expecting x: Char, vararg otherX: Char.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapIntVarargIndexedToShort")
inline fun mapVarargIndexed(arg: Int, otherArgs: IntArray, mapper: (Int, Int) -> Short): Pair<Short, ShortArray>

Maps the given arg and all elements in otherArgs by the given mapper to Short.

This function is intended for API functions which expect x: Int, vararg otherX: Int and want to pass the arguments to another function expecting x: Short, vararg otherX: Short.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapIntVarargIndexedToInt")
inline fun mapVarargIndexed(arg: Int, otherArgs: IntArray, mapper: (Int, Int) -> Int): Pair<Int, IntArray>

Maps the given arg and all elements in otherArgs by the given mapper to Int.

This function is intended for API functions which expect x: Int, vararg otherX: Int and want to pass the arguments to another function expecting x: Int, vararg otherX: Int.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapIntVarargIndexedToLong")
inline fun mapVarargIndexed(arg: Int, otherArgs: IntArray, mapper: (Int, Int) -> Long): Pair<Long, LongArray>

Maps the given arg and all elements in otherArgs by the given mapper to Long.

This function is intended for API functions which expect x: Int, vararg otherX: Int and want to pass the arguments to another function expecting x: Long, vararg otherX: Long.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapIntVarargIndexedToFloat")
inline fun mapVarargIndexed(arg: Int, otherArgs: IntArray, mapper: (Int, Int) -> Float): Pair<Float, FloatArray>

Maps the given arg and all elements in otherArgs by the given mapper to Float.

This function is intended for API functions which expect x: Int, vararg otherX: Int and want to pass the arguments to another function expecting x: Float, vararg otherX: Float.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapIntVarargIndexedToDouble")
inline fun mapVarargIndexed(arg: Int, otherArgs: IntArray, mapper: (Int, Int) -> Double): Pair<Double, DoubleArray>

Maps the given arg and all elements in otherArgs by the given mapper to Double.

This function is intended for API functions which expect x: Int, vararg otherX: Int and want to pass the arguments to another function expecting x: Double, vararg otherX: Double.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapVarargIndexedToLong")
inline fun <T> mapVarargIndexed(arg: T, otherArgs: Array<out T>, mapper: (Int, T) -> Long): Pair<Long, LongArray>

Maps the given arg and all elements in otherArgs by the given mapper to Long.

This function is intended for API functions which expect x: T, vararg otherX: T and want to pass the arguments to another function expecting x: Long, vararg otherX: Long.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapLongVarargIndexed")
inline fun <R> mapVarargIndexed(arg: Long, otherArgs: LongArray, mapper: (Int, Long) -> R): Pair<R, Array<out R>>

Maps the given arg and all elements in otherArgs by the given mapper.

This function is intended for API functions which expect x: Long, vararg otherX: Long and want to pass the arguments to another function expecting x: R, vararg otherX: R.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapLongVarargIndexedToBoolean")
inline fun mapVarargIndexed(arg: Long, otherArgs: LongArray, mapper: (Int, Long) -> Boolean): Pair<Boolean, BooleanArray>

Maps the given arg and all elements in otherArgs by the given mapper to Boolean.

This function is intended for API functions which expect x: Long, vararg otherX: Long and want to pass the arguments to another function expecting x: Boolean, vararg otherX: Boolean.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapLongVarargIndexedToByte")
inline fun mapVarargIndexed(arg: Long, otherArgs: LongArray, mapper: (Int, Long) -> Byte): Pair<Byte, ByteArray>

Maps the given arg and all elements in otherArgs by the given mapper to Byte.

This function is intended for API functions which expect x: Long, vararg otherX: Long and want to pass the arguments to another function expecting x: Byte, vararg otherX: Byte.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapLongVarargIndexedToChar")
inline fun mapVarargIndexed(arg: Long, otherArgs: LongArray, mapper: (Int, Long) -> Char): Pair<Char, CharArray>

Maps the given arg and all elements in otherArgs by the given mapper to Char.

This function is intended for API functions which expect x: Long, vararg otherX: Long and want to pass the arguments to another function expecting x: Char, vararg otherX: Char.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapLongVarargIndexedToShort")
inline fun mapVarargIndexed(arg: Long, otherArgs: LongArray, mapper: (Int, Long) -> Short): Pair<Short, ShortArray>

Maps the given arg and all elements in otherArgs by the given mapper to Short.

This function is intended for API functions which expect x: Long, vararg otherX: Long and want to pass the arguments to another function expecting x: Short, vararg otherX: Short.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapLongVarargIndexedToInt")
inline fun mapVarargIndexed(arg: Long, otherArgs: LongArray, mapper: (Int, Long) -> Int): Pair<Int, IntArray>

Maps the given arg and all elements in otherArgs by the given mapper to Int.

This function is intended for API functions which expect x: Long, vararg otherX: Long and want to pass the arguments to another function expecting x: Int, vararg otherX: Int.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapLongVarargIndexedToLong")
inline fun mapVarargIndexed(arg: Long, otherArgs: LongArray, mapper: (Int, Long) -> Long): Pair<Long, LongArray>

Maps the given arg and all elements in otherArgs by the given mapper to Long.

This function is intended for API functions which expect x: Long, vararg otherX: Long and want to pass the arguments to another function expecting x: Long, vararg otherX: Long.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapLongVarargIndexedToFloat")
inline fun mapVarargIndexed(arg: Long, otherArgs: LongArray, mapper: (Int, Long) -> Float): Pair<Float, FloatArray>

Maps the given arg and all elements in otherArgs by the given mapper to Float.

This function is intended for API functions which expect x: Long, vararg otherX: Long and want to pass the arguments to another function expecting x: Float, vararg otherX: Float.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapLongVarargIndexedToDouble")
inline fun mapVarargIndexed(arg: Long, otherArgs: LongArray, mapper: (Int, Long) -> Double): Pair<Double, DoubleArray>

Maps the given arg and all elements in otherArgs by the given mapper to Double.

This function is intended for API functions which expect x: Long, vararg otherX: Long and want to pass the arguments to another function expecting x: Double, vararg otherX: Double.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapVarargIndexedToFloat")
inline fun <T> mapVarargIndexed(arg: T, otherArgs: Array<out T>, mapper: (Int, T) -> Float): Pair<Float, FloatArray>

Maps the given arg and all elements in otherArgs by the given mapper to Float.

This function is intended for API functions which expect x: T, vararg otherX: T and want to pass the arguments to another function expecting x: Float, vararg otherX: Float.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapFloatVarargIndexed")
inline fun <R> mapVarargIndexed(arg: Float, otherArgs: FloatArray, mapper: (Int, Float) -> R): Pair<R, Array<out R>>

Maps the given arg and all elements in otherArgs by the given mapper.

This function is intended for API functions which expect x: Float, vararg otherX: Float and want to pass the arguments to another function expecting x: R, vararg otherX: R.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapFloatVarargIndexedToBoolean")
inline fun mapVarargIndexed(arg: Float, otherArgs: FloatArray, mapper: (Int, Float) -> Boolean): Pair<Boolean, BooleanArray>

Maps the given arg and all elements in otherArgs by the given mapper to Boolean.

This function is intended for API functions which expect x: Float, vararg otherX: Float and want to pass the arguments to another function expecting x: Boolean, vararg otherX: Boolean.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapFloatVarargIndexedToByte")
inline fun mapVarargIndexed(arg: Float, otherArgs: FloatArray, mapper: (Int, Float) -> Byte): Pair<Byte, ByteArray>

Maps the given arg and all elements in otherArgs by the given mapper to Byte.

This function is intended for API functions which expect x: Float, vararg otherX: Float and want to pass the arguments to another function expecting x: Byte, vararg otherX: Byte.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapFloatVarargIndexedToChar")
inline fun mapVarargIndexed(arg: Float, otherArgs: FloatArray, mapper: (Int, Float) -> Char): Pair<Char, CharArray>

Maps the given arg and all elements in otherArgs by the given mapper to Char.

This function is intended for API functions which expect x: Float, vararg otherX: Float and want to pass the arguments to another function expecting x: Char, vararg otherX: Char.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapFloatVarargIndexedToShort")
inline fun mapVarargIndexed(arg: Float, otherArgs: FloatArray, mapper: (Int, Float) -> Short): Pair<Short, ShortArray>

Maps the given arg and all elements in otherArgs by the given mapper to Short.

This function is intended for API functions which expect x: Float, vararg otherX: Float and want to pass the arguments to another function expecting x: Short, vararg otherX: Short.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapFloatVarargIndexedToInt")
inline fun mapVarargIndexed(arg: Float, otherArgs: FloatArray, mapper: (Int, Float) -> Int): Pair<Int, IntArray>

Maps the given arg and all elements in otherArgs by the given mapper to Int.

This function is intended for API functions which expect x: Float, vararg otherX: Float and want to pass the arguments to another function expecting x: Int, vararg otherX: Int.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapFloatVarargIndexedToLong")
inline fun mapVarargIndexed(arg: Float, otherArgs: FloatArray, mapper: (Int, Float) -> Long): Pair<Long, LongArray>

Maps the given arg and all elements in otherArgs by the given mapper to Long.

This function is intended for API functions which expect x: Float, vararg otherX: Float and want to pass the arguments to another function expecting x: Long, vararg otherX: Long.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapFloatVarargIndexedToFloat")
inline fun mapVarargIndexed(arg: Float, otherArgs: FloatArray, mapper: (Int, Float) -> Float): Pair<Float, FloatArray>

Maps the given arg and all elements in otherArgs by the given mapper to Float.

This function is intended for API functions which expect x: Float, vararg otherX: Float and want to pass the arguments to another function expecting x: Float, vararg otherX: Float.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapFloatVarargIndexedToDouble")
inline fun mapVarargIndexed(arg: Float, otherArgs: FloatArray, mapper: (Int, Float) -> Double): Pair<Double, DoubleArray>

Maps the given arg and all elements in otherArgs by the given mapper to Double.

This function is intended for API functions which expect x: Float, vararg otherX: Float and want to pass the arguments to another function expecting x: Double, vararg otherX: Double.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapVarargIndexedToDouble")
inline fun <T> mapVarargIndexed(arg: T, otherArgs: Array<out T>, mapper: (Int, T) -> Double): Pair<Double, DoubleArray>

Maps the given arg and all elements in otherArgs by the given mapper to Double.

This function is intended for API functions which expect x: T, vararg otherX: T and want to pass the arguments to another function expecting x: Double, vararg otherX: Double.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapDoubleVarargIndexed")
inline fun <R> mapVarargIndexed(arg: Double, otherArgs: DoubleArray, mapper: (Int, Double) -> R): Pair<R, Array<out R>>

Maps the given arg and all elements in otherArgs by the given mapper.

This function is intended for API functions which expect x: Double, vararg otherX: Double and want to pass the arguments to another function expecting x: R, vararg otherX: R.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapDoubleVarargIndexedToBoolean")
inline fun mapVarargIndexed(arg: Double, otherArgs: DoubleArray, mapper: (Int, Double) -> Boolean): Pair<Boolean, BooleanArray>

Maps the given arg and all elements in otherArgs by the given mapper to Boolean.

This function is intended for API functions which expect x: Double, vararg otherX: Double and want to pass the arguments to another function expecting x: Boolean, vararg otherX: Boolean.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapDoubleVarargIndexedToByte")
inline fun mapVarargIndexed(arg: Double, otherArgs: DoubleArray, mapper: (Int, Double) -> Byte): Pair<Byte, ByteArray>

Maps the given arg and all elements in otherArgs by the given mapper to Byte.

This function is intended for API functions which expect x: Double, vararg otherX: Double and want to pass the arguments to another function expecting x: Byte, vararg otherX: Byte.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapDoubleVarargIndexedToChar")
inline fun mapVarargIndexed(arg: Double, otherArgs: DoubleArray, mapper: (Int, Double) -> Char): Pair<Char, CharArray>

Maps the given arg and all elements in otherArgs by the given mapper to Char.

This function is intended for API functions which expect x: Double, vararg otherX: Double and want to pass the arguments to another function expecting x: Char, vararg otherX: Char.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapDoubleVarargIndexedToShort")
inline fun mapVarargIndexed(arg: Double, otherArgs: DoubleArray, mapper: (Int, Double) -> Short): Pair<Short, ShortArray>

Maps the given arg and all elements in otherArgs by the given mapper to Short.

This function is intended for API functions which expect x: Double, vararg otherX: Double and want to pass the arguments to another function expecting x: Short, vararg otherX: Short.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapDoubleVarargIndexedToInt")
inline fun mapVarargIndexed(arg: Double, otherArgs: DoubleArray, mapper: (Int, Double) -> Int): Pair<Int, IntArray>

Maps the given arg and all elements in otherArgs by the given mapper to Int.

This function is intended for API functions which expect x: Double, vararg otherX: Double and want to pass the arguments to another function expecting x: Int, vararg otherX: Int.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapDoubleVarargIndexedToLong")
inline fun mapVarargIndexed(arg: Double, otherArgs: DoubleArray, mapper: (Int, Double) -> Long): Pair<Long, LongArray>

Maps the given arg and all elements in otherArgs by the given mapper to Long.

This function is intended for API functions which expect x: Double, vararg otherX: Double and want to pass the arguments to another function expecting x: Long, vararg otherX: Long.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapDoubleVarargIndexedToFloat")
inline fun mapVarargIndexed(arg: Double, otherArgs: DoubleArray, mapper: (Int, Double) -> Float): Pair<Float, FloatArray>

Maps the given arg and all elements in otherArgs by the given mapper to Float.

This function is intended for API functions which expect x: Double, vararg otherX: Double and want to pass the arguments to another function expecting x: Float, vararg otherX: Float.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0


@JvmName(name = "mapDoubleVarargIndexedToDouble")
inline fun mapVarargIndexed(arg: Double, otherArgs: DoubleArray, mapper: (Int, Double) -> Double): Pair<Double, DoubleArray>

Maps the given arg and all elements in otherArgs by the given mapper to Double.

This function is intended for API functions which expect x: Double, vararg otherX: Double and want to pass the arguments to another function expecting x: Double, vararg otherX: Double.

Return

a Pair containing the mapped arg as first and the mapped otherArgs as second element.

Since

3.1.0