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.0Constructors
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.
Returns new array which is a copy of the original array.
Returns new array which is a copy of the original array, resized to the given newSize. The copy is either truncated or padded at the end with null values if necessary.
Appends all elements that are instances of specified class to the given destination.
Returns an array containing all elements of the original array and then the given element.
Returns an array containing all elements of the original array and then all elements of the given elements collection.
Returns an array containing all elements of the original array and then all elements of the given elements array.
Sorts the array in-place according to the order specified by the given comparator.
Sorts a range in the array in-place with the given comparator.