Instance Property

underestimatedCount

A value less than or equal to the number of elements in the collection.

Declaration

var underestimatedCount: Int { get }

Discussion

Complexity: O(1) if the collection conforms to RandomAccessCollection; otherwise, O(n), where n is the length of the collection.

See Also

Iterating Over the Collection

func makeIterator() -> Scene.AnchorCollection.Iterator

Returns an iterator over the elements of the collection.

func forEach((HasAnchoring) -> Void)

Calls the given closure on each element in the sequence in the same order as a for-in loop.

func enumerated() -> EnumeratedSequence<Scene.AnchorCollection>

Returns a sequence of pairs (n, x), where n represents a consecutive integer starting at zero and x represents an element of the sequence.