Package-level declarations

Functions

Link copied to clipboard
operator fun <T> List<T>.component10(): T

Returns the element at index 9 for destructuring declarations.

Link copied to clipboard
operator fun <T> List<T>.component11(): T

Returns the element at index 10 for destructuring declarations.

Link copied to clipboard
operator fun <T> List<T>.component12(): T

Returns the element at index 11 for destructuring declarations.

Link copied to clipboard
operator fun <T> List<T>.component13(): T

Returns the element at index 12 for destructuring declarations.

Link copied to clipboard
operator fun <T> List<T>.component14(): T

Returns the element at index 13 for destructuring declarations.

Link copied to clipboard
operator fun <T> List<T>.component15(): T

Returns the element at index 14 for destructuring declarations.

Link copied to clipboard
operator fun <T> List<T>.component6(): T

Returns the element at index 5 for destructuring declarations.

Link copied to clipboard
operator fun <T> List<T>.component7(): T

Returns the element at index 6 for destructuring declarations.

Link copied to clipboard
operator fun <T> List<T>.component8(): T

Returns the element at index 7 for destructuring declarations.

Link copied to clipboard
operator fun <T> List<T>.component9(): T

Returns the element at index 8 for destructuring declarations.

Link copied to clipboard
inline fun BooleanArray.count(from: Int = 0, to: Int = size, predicate: (Boolean) -> Boolean): Int

Counts elements in this boolean array that satisfy predicate within the index range [from, to].

inline fun IntArray.count(from: Int = 0, to: Int = size, predicate: (Int) -> Boolean): Int

Counts elements in this int array that satisfy predicate within the index range [from, to].

inline fun <T> Iterable<T>.count(from: Int = 0, to: Int = -1, predicate: (T) -> Boolean): Int

Counts elements in this iterable that satisfy predicate within the index range starting at from.

inline fun <T> List<T>.count(from: Int = 0, to: Int = size, predicate: (T) -> Boolean): Int

Counts elements in the sublist [from, to) that satisfy predicate.

Link copied to clipboard
inline fun <T> Array<T>.firstIndexThat(predicate: (index: Int, T) -> Boolean): Int

Returns the zero-based index of the first element in this object array for which predicate returns true.

inline fun BooleanArray.firstIndexThat(predicate: (index: Int, Boolean) -> Boolean): Int

Returns the zero-based index of the first element in this boolean array for which predicate returns true.

inline fun ByteArray.firstIndexThat(predicate: (index: Int, Byte) -> Boolean): Int

Returns the zero-based index of the first element in this byte array for which predicate returns true.

inline fun CharArray.firstIndexThat(predicate: (index: Int, Char) -> Boolean): Int

Returns the zero-based index of the first element in this char array for which predicate returns true.

inline fun DoubleArray.firstIndexThat(predicate: (index: Int, Double) -> Boolean): Int

Returns the zero-based index of the first element in this double array for which predicate returns true.

inline fun FloatArray.firstIndexThat(predicate: (index: Int, Float) -> Boolean): Int

Returns the zero-based index of the first element in this float array for which predicate returns true.

inline fun IntArray.firstIndexThat(predicate: (index: Int, Int) -> Boolean): Int

Returns the zero-based index of the first element in this int array for which predicate returns true.

inline fun LongArray.firstIndexThat(predicate: (index: Int, Long) -> Boolean): Int

Returns the zero-based index of the first element in this long array for which predicate returns true.

inline fun ShortArray.firstIndexThat(predicate: (index: Int, Short) -> Boolean): Int

Returns the zero-based index of the first element in this short array for which predicate returns true.

inline fun <T> Iterable<T>.firstIndexThat(predicate: (index: Int, T) -> Boolean): Int

Returns the zero-based index of the first element in this iterable for which predicate returns true.

inline fun <T> List<T>.firstIndexThat(predicate: (index: Int, T) -> Boolean): Int

Returns the zero-based index of the first element in this list for which predicate returns true.

Link copied to clipboard
inline fun <T> Array<T>.firstThat(predicate: (index: Int, T) -> Boolean): T

Returns the first element in this object array for which predicate returns true.

inline fun BooleanArray.firstThat(predicate: (index: Int, Boolean) -> Boolean): Boolean

Returns the first element in this boolean array for which predicate returns true.

inline fun ByteArray.firstThat(predicate: (index: Int, Byte) -> Boolean): Byte

Returns the first element in this byte array for which predicate returns true.

inline fun CharArray.firstThat(predicate: (index: Int, Char) -> Boolean): Char

Returns the first element in this char array for which predicate returns true.

inline fun DoubleArray.firstThat(predicate: (index: Int, Double) -> Boolean): Double

Returns the first element in this double array for which predicate returns true.

inline fun FloatArray.firstThat(predicate: (index: Int, Float) -> Boolean): Float

Returns the first element in this float array for which predicate returns true.

inline fun IntArray.firstThat(predicate: (index: Int, Int) -> Boolean): Int

Returns the first element in this int array for which predicate returns true.

inline fun LongArray.firstThat(predicate: (index: Int, Long) -> Boolean): Long

Returns the first element in this long array for which predicate returns true.

inline fun ShortArray.firstThat(predicate: (index: Int, Short) -> Boolean): Short

Returns the first element in this short array for which predicate returns true.

inline fun <T> Iterable<T>.firstThat(predicate: (index: Int, T) -> Boolean): T

Returns the first element in this iterable for which predicate returns true.

Link copied to clipboard
inline fun <T> Array<T>.firstThatOrNull(predicate: (index: Int, T) -> Boolean): T?

Returns the first element in this object array for which predicate returns true, or null if none match.

inline fun BooleanArray.firstThatOrNull(predicate: (index: Int, Boolean) -> Boolean): Boolean?

Returns the first element in this boolean array for which predicate returns true, or null if none match.

inline fun ByteArray.firstThatOrNull(predicate: (index: Int, Byte) -> Boolean): Byte?

Returns the first element in this byte array for which predicate returns true, or null if none match.

inline fun CharArray.firstThatOrNull(predicate: (index: Int, Char) -> Boolean): Char?

Returns the first element in this char array for which predicate returns true, or null if none match.

inline fun DoubleArray.firstThatOrNull(predicate: (index: Int, Double) -> Boolean): Double?

Returns the first element in this double array for which predicate returns true, or null if none match.

inline fun FloatArray.firstThatOrNull(predicate: (index: Int, Float) -> Boolean): Float?

Returns the first element in this float array for which predicate returns true, or null if none match.

inline fun IntArray.firstThatOrNull(predicate: (index: Int, Int) -> Boolean): Int?

Returns the first element in this int array for which predicate returns true, or null if none match.

inline fun LongArray.firstThatOrNull(predicate: (index: Int, Long) -> Boolean): Long?

Returns the first element in this long array for which predicate returns true, or null if none match.

inline fun ShortArray.firstThatOrNull(predicate: (index: Int, Short) -> Boolean): Short?

Returns the first element in this short array for which predicate returns true, or null if none match.

inline fun <T> Iterable<T>.firstThatOrNull(predicate: (index: Int, T) -> Boolean): T?

Returns the first element in this iterable for which predicate returns true, or null if none match.

Link copied to clipboard
inline fun <T> Array<T>.lastIndexThat(predicate: (index: Int, T) -> Boolean): Int

Returns the zero-based index of the last element in this object array for which predicate returns true.

inline fun BooleanArray.lastIndexThat(predicate: (index: Int, Boolean) -> Boolean): Int

Returns the zero-based index of the last element in this boolean array for which predicate returns true.

inline fun ByteArray.lastIndexThat(predicate: (index: Int, Byte) -> Boolean): Int

Returns the zero-based index of the last element in this byte array for which predicate returns true.

inline fun CharArray.lastIndexThat(predicate: (index: Int, Char) -> Boolean): Int

Returns the zero-based index of the last element in this char array for which predicate returns true.

inline fun DoubleArray.lastIndexThat(predicate: (index: Int, Double) -> Boolean): Int

Returns the zero-based index of the last element in this double array for which predicate returns true.

inline fun FloatArray.lastIndexThat(predicate: (index: Int, Float) -> Boolean): Int

Returns the zero-based index of the last element in this float array for which predicate returns true.

inline fun IntArray.lastIndexThat(predicate: (index: Int, Int) -> Boolean): Int

Returns the zero-based index of the last element in this int array for which predicate returns true.

inline fun LongArray.lastIndexThat(predicate: (index: Int, Long) -> Boolean): Int

Returns the zero-based index of the last element in this long array for which predicate returns true.

inline fun ShortArray.lastIndexThat(predicate: (index: Int, Short) -> Boolean): Int

Returns the zero-based index of the last element in this short array for which predicate returns true.

inline fun <T> Iterable<T>.lastIndexThat(predicate: (index: Int, T) -> Boolean): Int

Returns the zero-based index of the last element in this iterable for which predicate returns true.

inline fun <T> List<T>.lastIndexThat(predicate: (index: Int, T) -> Boolean): Int

Returns the zero-based index of the last element in this list for which predicate returns true.

Link copied to clipboard
inline fun <T> Array<T>.lastThat(predicate: (index: Int, T) -> Boolean): T

Returns the last element in this object array for which predicate returns true.

inline fun BooleanArray.lastThat(predicate: (index: Int, Boolean) -> Boolean): Boolean

Returns the last element in this boolean array for which predicate returns true.

inline fun ByteArray.lastThat(predicate: (index: Int, Byte) -> Boolean): Byte

Returns the last element in this byte array for which predicate returns true.

inline fun CharArray.lastThat(predicate: (index: Int, Char) -> Boolean): Char

Returns the last element in this char array for which predicate returns true.

inline fun DoubleArray.lastThat(predicate: (index: Int, Double) -> Boolean): Double

Returns the last element in this double array for which predicate returns true.

inline fun FloatArray.lastThat(predicate: (index: Int, Float) -> Boolean): Float

Returns the last element in this float array for which predicate returns true.

inline fun IntArray.lastThat(predicate: (index: Int, Int) -> Boolean): Int

Returns the last element in this int array for which predicate returns true.

inline fun LongArray.lastThat(predicate: (index: Int, Long) -> Boolean): Long

Returns the last element in this long array for which predicate returns true.

inline fun ShortArray.lastThat(predicate: (index: Int, Short) -> Boolean): Short

Returns the last element in this short array for which predicate returns true.

inline fun <T> Iterable<T>.lastThat(predicate: (index: Int, T) -> Boolean): T

Returns the last element in this iterable for which predicate returns true.

inline fun <T> List<T>.lastThat(predicate: (index: Int, T) -> Boolean): T

Returns the last element in this list for which predicate returns true.

Link copied to clipboard
inline fun <T> Array<T>.lastThatOrNull(predicate: (index: Int, T) -> Boolean): T?

Returns the last element in this object array for which predicate returns true, or null if none match.

inline fun BooleanArray.lastThatOrNull(predicate: (index: Int, Boolean) -> Boolean): Boolean?

Returns the last element in this boolean array for which predicate returns true, or null if none match.

inline fun ByteArray.lastThatOrNull(predicate: (index: Int, Byte) -> Boolean): Byte?

Returns the last element in this byte array for which predicate returns true, or null if none match.

inline fun CharArray.lastThatOrNull(predicate: (index: Int, Char) -> Boolean): Char?

Returns the last element in this char array for which predicate returns true, or null if none match.

inline fun DoubleArray.lastThatOrNull(predicate: (index: Int, Double) -> Boolean): Double?

Returns the last element in this double array for which predicate returns true, or null if none match.

inline fun FloatArray.lastThatOrNull(predicate: (index: Int, Float) -> Boolean): Float?

Returns the last element in this float array for which predicate returns true, or null if none match.

inline fun IntArray.lastThatOrNull(predicate: (index: Int, Int) -> Boolean): Int?

Returns the last element in this int array for which predicate returns true, or null if none match.

inline fun LongArray.lastThatOrNull(predicate: (index: Int, Long) -> Boolean): Long?

Returns the last element in this long array for which predicate returns true, or null if none match.

inline fun ShortArray.lastThatOrNull(predicate: (index: Int, Short) -> Boolean): Short?

Returns the last element in this short array for which predicate returns true, or null if none match.

inline fun <T> Iterable<T>.lastThatOrNull(predicate: (index: Int, T) -> Boolean): T?

Returns the last element in this iterable for which predicate returns true, or null if none match.

inline fun <T> List<T>.lastThatOrNull(predicate: (index: Int, T) -> Boolean): T?

Returns the last element in this list for which predicate returns true, or null if none match.