mapVararg

inline fun <T, R> mapVararg(arg: T, otherArgs: Array<out T>, mapper: (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 = "mapVarargToBoolean")
inline fun <T> mapVararg(arg: T, otherArgs: Array<out T>, mapper: (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 = "mapBooleanVararg")
inline fun <R> mapVararg(arg: Boolean, otherArgs: BooleanArray, mapper: (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 = "mapBooleanVarargToBoolean")
inline fun mapVararg(arg: Boolean, otherArgs: BooleanArray, mapper: (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 = "mapBooleanVarargToByte")
inline fun mapVararg(arg: Boolean, otherArgs: BooleanArray, mapper: (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 = "mapBooleanVarargToChar")
inline fun mapVararg(arg: Boolean, otherArgs: BooleanArray, mapper: (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 = "mapBooleanVarargToShort")
inline fun mapVararg(arg: Boolean, otherArgs: BooleanArray, mapper: (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 = "mapBooleanVarargToInt")
inline fun mapVararg(arg: Boolean, otherArgs: BooleanArray, mapper: (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 = "mapBooleanVarargToLong")
inline fun mapVararg(arg: Boolean, otherArgs: BooleanArray, mapper: (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 = "mapBooleanVarargToFloat")
inline fun mapVararg(arg: Boolean, otherArgs: BooleanArray, mapper: (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 = "mapBooleanVarargToDouble")
inline fun mapVararg(arg: Boolean, otherArgs: BooleanArray, mapper: (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 = "mapVarargToByte")
inline fun <T> mapVararg(arg: T, otherArgs: Array<out T>, mapper: (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 = "mapByteVararg")
inline fun <R> mapVararg(arg: Byte, otherArgs: ByteArray, mapper: (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 = "mapByteVarargToBoolean")
inline fun mapVararg(arg: Byte, otherArgs: ByteArray, mapper: (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 = "mapByteVarargToByte")
inline fun mapVararg(arg: Byte, otherArgs: ByteArray, mapper: (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 = "mapByteVarargToChar")
inline fun mapVararg(arg: Byte, otherArgs: ByteArray, mapper: (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 = "mapByteVarargToShort")
inline fun mapVararg(arg: Byte, otherArgs: ByteArray, mapper: (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 = "mapByteVarargToInt")
inline fun mapVararg(arg: Byte, otherArgs: ByteArray, mapper: (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 = "mapByteVarargToLong")
inline fun mapVararg(arg: Byte, otherArgs: ByteArray, mapper: (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 = "mapByteVarargToFloat")
inline fun mapVararg(arg: Byte, otherArgs: ByteArray, mapper: (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 = "mapByteVarargToDouble")
inline fun mapVararg(arg: Byte, otherArgs: ByteArray, mapper: (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 = "mapVarargToChar")
inline fun <T> mapVararg(arg: T, otherArgs: Array<out T>, mapper: (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 = "mapCharVararg")
inline fun <R> mapVararg(arg: Char, otherArgs: CharArray, mapper: (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 = "mapCharVarargToBoolean")
inline fun mapVararg(arg: Char, otherArgs: CharArray, mapper: (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 = "mapCharVarargToByte")
inline fun mapVararg(arg: Char, otherArgs: CharArray, mapper: (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 = "mapCharVarargToChar")
inline fun mapVararg(arg: Char, otherArgs: CharArray, mapper: (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 = "mapCharVarargToShort")
inline fun mapVararg(arg: Char, otherArgs: CharArray, mapper: (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 = "mapCharVarargToInt")
inline fun mapVararg(arg: Char, otherArgs: CharArray, mapper: (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 = "mapCharVarargToLong")
inline fun mapVararg(arg: Char, otherArgs: CharArray, mapper: (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 = "mapCharVarargToFloat")
inline fun mapVararg(arg: Char, otherArgs: CharArray, mapper: (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 = "mapCharVarargToDouble")
inline fun mapVararg(arg: Char, otherArgs: CharArray, mapper: (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 = "mapVarargToShort")
inline fun <T> mapVararg(arg: T, otherArgs: Array<out T>, mapper: (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 = "mapShortVararg")
inline fun <R> mapVararg(arg: Short, otherArgs: ShortArray, mapper: (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 = "mapShortVarargToBoolean")
inline fun mapVararg(arg: Short, otherArgs: ShortArray, mapper: (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 = "mapShortVarargToByte")
inline fun mapVararg(arg: Short, otherArgs: ShortArray, mapper: (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 = "mapShortVarargToChar")
inline fun mapVararg(arg: Short, otherArgs: ShortArray, mapper: (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 = "mapShortVarargToShort")
inline fun mapVararg(arg: Short, otherArgs: ShortArray, mapper: (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 = "mapShortVarargToInt")
inline fun mapVararg(arg: Short, otherArgs: ShortArray, mapper: (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 = "mapShortVarargToLong")
inline fun mapVararg(arg: Short, otherArgs: ShortArray, mapper: (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 = "mapShortVarargToFloat")
inline fun mapVararg(arg: Short, otherArgs: ShortArray, mapper: (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 = "mapShortVarargToDouble")
inline fun mapVararg(arg: Short, otherArgs: ShortArray, mapper: (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 = "mapVarargToInt")
inline fun <T> mapVararg(arg: T, otherArgs: Array<out T>, mapper: (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 = "mapIntVararg")
inline fun <R> mapVararg(arg: Int, otherArgs: IntArray, mapper: (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 = "mapIntVarargToBoolean")
inline fun mapVararg(arg: Int, otherArgs: IntArray, mapper: (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 = "mapIntVarargToByte")
inline fun mapVararg(arg: Int, otherArgs: IntArray, mapper: (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 = "mapIntVarargToChar")
inline fun mapVararg(arg: Int, otherArgs: IntArray, mapper: (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 = "mapIntVarargToShort")
inline fun mapVararg(arg: Int, otherArgs: IntArray, mapper: (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 = "mapIntVarargToInt")
inline fun mapVararg(arg: Int, otherArgs: IntArray, mapper: (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 = "mapIntVarargToLong")
inline fun mapVararg(arg: Int, otherArgs: IntArray, mapper: (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 = "mapIntVarargToFloat")
inline fun mapVararg(arg: Int, otherArgs: IntArray, mapper: (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 = "mapIntVarargToDouble")
inline fun mapVararg(arg: Int, otherArgs: IntArray, mapper: (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 = "mapVarargToLong")
inline fun <T> mapVararg(arg: T, otherArgs: Array<out T>, mapper: (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 = "mapLongVararg")
inline fun <R> mapVararg(arg: Long, otherArgs: LongArray, mapper: (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 = "mapLongVarargToBoolean")
inline fun mapVararg(arg: Long, otherArgs: LongArray, mapper: (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 = "mapLongVarargToByte")
inline fun mapVararg(arg: Long, otherArgs: LongArray, mapper: (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 = "mapLongVarargToChar")
inline fun mapVararg(arg: Long, otherArgs: LongArray, mapper: (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 = "mapLongVarargToShort")
inline fun mapVararg(arg: Long, otherArgs: LongArray, mapper: (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 = "mapLongVarargToInt")
inline fun mapVararg(arg: Long, otherArgs: LongArray, mapper: (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 = "mapLongVarargToLong")
inline fun mapVararg(arg: Long, otherArgs: LongArray, mapper: (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 = "mapLongVarargToFloat")
inline fun mapVararg(arg: Long, otherArgs: LongArray, mapper: (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 = "mapLongVarargToDouble")
inline fun mapVararg(arg: Long, otherArgs: LongArray, mapper: (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 = "mapVarargToFloat")
inline fun <T> mapVararg(arg: T, otherArgs: Array<out T>, mapper: (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 = "mapFloatVararg")
inline fun <R> mapVararg(arg: Float, otherArgs: FloatArray, mapper: (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 = "mapFloatVarargToBoolean")
inline fun mapVararg(arg: Float, otherArgs: FloatArray, mapper: (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 = "mapFloatVarargToByte")
inline fun mapVararg(arg: Float, otherArgs: FloatArray, mapper: (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 = "mapFloatVarargToChar")
inline fun mapVararg(arg: Float, otherArgs: FloatArray, mapper: (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 = "mapFloatVarargToShort")
inline fun mapVararg(arg: Float, otherArgs: FloatArray, mapper: (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 = "mapFloatVarargToInt")
inline fun mapVararg(arg: Float, otherArgs: FloatArray, mapper: (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 = "mapFloatVarargToLong")
inline fun mapVararg(arg: Float, otherArgs: FloatArray, mapper: (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 = "mapFloatVarargToFloat")
inline fun mapVararg(arg: Float, otherArgs: FloatArray, mapper: (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 = "mapFloatVarargToDouble")
inline fun mapVararg(arg: Float, otherArgs: FloatArray, mapper: (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 = "mapVarargToDouble")
inline fun <T> mapVararg(arg: T, otherArgs: Array<out T>, mapper: (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 = "mapDoubleVararg")
inline fun <R> mapVararg(arg: Double, otherArgs: DoubleArray, mapper: (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 = "mapDoubleVarargToBoolean")
inline fun mapVararg(arg: Double, otherArgs: DoubleArray, mapper: (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 = "mapDoubleVarargToByte")
inline fun mapVararg(arg: Double, otherArgs: DoubleArray, mapper: (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 = "mapDoubleVarargToChar")
inline fun mapVararg(arg: Double, otherArgs: DoubleArray, mapper: (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 = "mapDoubleVarargToShort")
inline fun mapVararg(arg: Double, otherArgs: DoubleArray, mapper: (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 = "mapDoubleVarargToInt")
inline fun mapVararg(arg: Double, otherArgs: DoubleArray, mapper: (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 = "mapDoubleVarargToLong")
inline fun mapVararg(arg: Double, otherArgs: DoubleArray, mapper: (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 = "mapDoubleVarargToFloat")
inline fun mapVararg(arg: Double, otherArgs: DoubleArray, mapper: (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 = "mapDoubleVarargToDouble")
inline fun mapVararg(arg: Double, otherArgs: DoubleArray, mapper: (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