We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c7fb47 + 81b0d3a commit e78643cCopy full SHA for e78643c
stdlib/public/core/SequenceAlgorithms.swift
@@ -787,8 +787,7 @@ extension Sequence {
787
/// - Returns: An array of the non-`nil` results of calling `transform`
788
/// with each element of the sequence.
789
///
790
- /// - Complexity: O(*m* + *n*), where *n* is the length of this sequence
791
- /// and *m* is the length of the result.
+ /// - Complexity: O(*n*), where *n* is the length of this sequence.
792
@inlinable // protocol-only
793
public func compactMap<ElementOfResult>(
794
_ transform: (Element) throws -> ElementOfResult?
0 commit comments