Instance Property

count

The number of elements in the array.

Declaration

var count: Int { get }

Relationships

From Protocol

See Also

Inspecting an Array

var isEmpty: Bool

A Boolean value indicating whether the collection is empty.

var capacity: Int

The total number of elements that the array can contain without allocating new storage.