Swift Collection underestimateCount usage

Was ist ein Anwendungsfall für CollectionunderestimateCount. Dokumentatio sagt, dass es die gleiche Komplexität hat wie die Standard CollectionAnzah.

Ich habe gesehen, es ist Deklaration:

/// Returns a value less than or equal to the number of elements in
/// `self`, *nondestructively*.
///
/// - Complexity: O(N).
public func underestimateCount() -> Int

Aber es sagt mir nichts darüber aus, wann und aus welchem Grund ich es verwenden soll.

Antworten auf die Frage(4)

Ihre Antwort auf die Frage