mapIndexed

inline fun <T> List<T>.mapIndexed(transform: (Int, T) -> Int): IntList(source)

Returns a IntList containing the results of applying the given transform function to each element and its index in the original list.


inline fun <T> List<T>.mapIndexed(transform: (Int, T) -> Long): LongList(source)

Returns a LongList containing the results of applying the given transform function to each element and its index in the original list.


inline fun <T> List<T>.mapIndexed(transform: (Int, T) -> Float): FloatList(source)

Returns a FloatList containing the results of applying the given transform function to each element and its index in the original list.


inline fun <T> List<T>.mapIndexed(transform: (Int, T) -> Double): DoubleList(source)

Returns a DoubleList containing the results of applying the given transform function to each element and its index in the original list.


inline fun IntList.mapIndexed(transform: (Int, Int) -> Int): IntList(source)

Returns a IntList containing the results of applying the given transform function to each element and its index in the original IntList.


inline fun IntList.mapIndexed(transform: (Int, Int) -> Long): LongList(source)

Returns a LongList containing the results of applying the given transform function to each element and its index in the original IntList.


inline fun IntList.mapIndexed(transform: (Int, Int) -> Float): FloatList(source)

Returns a FloatList containing the results of applying the given transform function to each element and its index in the original IntList.


inline fun IntList.mapIndexed(transform: (Int, Int) -> Double): DoubleList(source)

Returns a DoubleList containing the results of applying the given transform function to each element and its index in the original IntList.


inline fun LongList.mapIndexed(transform: (Int, Long) -> Int): IntList(source)

Returns a IntList containing the results of applying the given transform function to each element and its index in the original LongList.


inline fun LongList.mapIndexed(transform: (Int, Long) -> Long): LongList(source)

Returns a LongList containing the results of applying the given transform function to each element and its index in the original LongList.


inline fun LongList.mapIndexed(transform: (Int, Long) -> Float): FloatList(source)

Returns a FloatList containing the results of applying the given transform function to each element and its index in the original LongList.


inline fun LongList.mapIndexed(transform: (Int, Long) -> Double): DoubleList(source)

Returns a DoubleList containing the results of applying the given transform function to each element and its index in the original LongList.


inline fun FloatList.mapIndexed(transform: (Int, Float) -> Int): IntList(source)

Returns a IntList containing the results of applying the given transform function to each element and its index in the original FloatList.


inline fun FloatList.mapIndexed(transform: (Int, Float) -> Long): LongList(source)

Returns a LongList containing the results of applying the given transform function to each element and its index in the original FloatList.


inline fun FloatList.mapIndexed(transform: (Int, Float) -> Float): FloatList(source)

Returns a FloatList containing the results of applying the given transform function to each element and its index in the original FloatList.


inline fun FloatList.mapIndexed(transform: (Int, Float) -> Double): DoubleList(source)

Returns a DoubleList containing the results of applying the given transform function to each element and its index in the original FloatList.


inline fun DoubleList.mapIndexed(transform: (Int, Double) -> Int): IntList(source)

Returns a IntList containing the results of applying the given transform function to each element and its index in the original DoubleList.


inline fun DoubleList.mapIndexed(transform: (Int, Double) -> Long): LongList(source)

Returns a LongList containing the results of applying the given transform function to each element and its index in the original DoubleList.


inline fun DoubleList.mapIndexed(transform: (Int, Double) -> Float): FloatList(source)

Returns a FloatList containing the results of applying the given transform function to each element and its index in the original DoubleList.


inline fun DoubleList.mapIndexed(transform: (Int, Double) -> Double): DoubleList(source)

Returns a DoubleList containing the results of applying the given transform function to each element and its index in the original DoubleList.


inline fun <R> IntList.mapIndexed(transform: (Int, Int) -> R): List<R>(source)

Returns a List containing the results of applying the given transform function to each element and its index in the original IntList.


inline fun <R> LongList.mapIndexed(transform: (Int, Long) -> R): List<R>(source)

Returns a List containing the results of applying the given transform function to each element and its index in the original LongList.


inline fun <R> FloatList.mapIndexed(transform: (Int, Float) -> R): List<R>(source)

Returns a List containing the results of applying the given transform function to each element and its index in the original FloatList.


inline fun <R> DoubleList.mapIndexed(transform: (Int, Double) -> R): List<R>(source)

Returns a List containing the results of applying the given transform function to each element and its index in the original DoubleList.