All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin.Arrays.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-Beta1
Show newest version
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy