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 = AtomicArray(arrayOf("a", "b", "c", "d", "e"))
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