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. 計算量:O(1)、もしコレクションがRandomAccessCollectionに準拠するならば;そうでなければ、O(n)、そこでnはコレクションの長さです。

See Also 参照

Iterating Over an Array's Elements 配列の要素すべてに反復する