kotlin.Arrays.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-stdlib Show documentation
Show all versions of kotlin-stdlib Show documentation
Kotlin Standard Library for JVM
package kotlin
/** Returns true if the array is not empty */
public fun Array.isNotEmpty() : Boolean = !this.isEmpty()
/** Returns true if the array is empty */
public fun Array.isEmpty() : Boolean = this.size == 0
public val BooleanArray.lastIndex : Int
get() = this.size - 1
public val ByteArray.lastIndex : Int
get() = this.size - 1
public val ShortArray.lastIndex : Int
get() = this.size - 1
public val IntArray.lastIndex : Int
get() = this.size - 1
public val LongArray.lastIndex : Int
get() = this.size - 1
public val FloatArray.lastIndex : Int
get() = this.size - 1
public val DoubleArray.lastIndex : Int
get() = this.size - 1
public val CharArray.lastIndex : Int
get() = this.size - 1
public val Array.lastIndex : Int
get() = this.size - 1