Instance Property

count

The number of objects in the array.

Declaration

var count: Int { get }

See Also

Querying an Array

func contains(Any)

Returns a Boolean value that indicates whether a given object is present in the array.

var firstObject: Any?

The first object in the array.

var lastObject: Any?

The last object in the array.

func object(at: Int)

Returns the object located at the specified index.

subscript(Int)

Returns the object at the specified index.

func objects(at: IndexSet)

Returns an array containing the objects in the array at the indexes specified by a given index set.

func objectEnumerator()

Returns an enumerator object that lets you access each object in the array.

func reverseObjectEnumerator()

Returns an enumerator object that lets you access each object in the array, in reverse order.