Instance Property (Default implementation)swift 6.0.3Swift

underestimatedCount

A value less than or equal to the number of elements in the sequence, calculated nondestructively.

var underestimatedCount: Int { get }

The default implementation returns 0. If you provide your own implementation, make sure to compute the value nondestructively.