size

expect val size: Int(source)

Returns the number of elements in the array.

Since Kotlin

2.1

Samples

import kotlin.concurrent.atomics.*

fun main() { 
   //sampleStart 
   val a = AtomicIntArray(intArrayOf(1, 2, 3, 4, 5))
println(a.size) // 5 
   //sampleEnd
}
actual val size: Int(source)

Returns the number of elements in the array.

Since Kotlin

2.1
actual val size: Int(source)

Returns the number of elements in the array.

Since Kotlin

2.1
actual val size: Int(source)

Returns the number of elements in the array.

Since Kotlin

2.1
actual val size: Int(source)

Returns the number of elements in the array.

Since Kotlin

2.1
actual val size: Int(source)

Returns the number of elements in the array.

Since Kotlin

2.1