Array
Represents an array (specifically, a Java array when targeting the JVM platform). Array instances can be created using the arrayOf, arrayOfNulls and emptyArray standard library functions. See Kotlin language documentation for more information on arrays.
Since Kotlin
1.0Represents an array (specifically, a Java array when targeting the JVM platform). Array instances can be created using the arrayOf, arrayOfNulls and emptyArray standard library functions. See Kotlin language documentation for more information on arrays.
Since Kotlin
1.1Constructors
Creates a new array with the specified size, where each element is calculated by calling the specified init function.
Functions
Properties
Extensions
Searches the array or the range of the array for the provided element using the binary search algorithm. The array is expected to be sorted according to the specified comparator, otherwise the result is undefined.
Searches the array or the range of the array for the provided element using the binary search algorithm. The array is expected to be sorted, otherwise the result is undefined.
Appends all elements that are instances of specified class to the given destination.
Sorts the array in-place according to the natural order of its elements.
Sorts a range in the array in-place.
Returns a new SortedSet of all elements.