Instance Property インスタンスプロパティ

underestimatedCount

A value less than or equal to the number of elements in the sequence, calculated nondestructively. シーケンスの要素数より少ないか等しい値、非破壊的に計算されます。

Declaration 宣言

var underestimatedCount: Int { get }

Discussion 解説

The default implementation returns 0. If you provide your own implementation, make sure to compute the value nondestructively. 省略時の実装は、0を返します。あなたがあなた独自の実装を提供するならば、値を非破壊的に計算することを確実にしてください。

Complexity: O(1), except if the sequence also conforms to Collection. In this case, see the documentation of Collection.underestimatedCount. 計算量:O(1)、例外としてシーケンスが同様にCollectionに準拠する場合を除きます。この場合には、Collection.underestimatedCountの文書を見てください。