Skip to content

Commit 49f0295

Browse files
Moximilliannatecook1000
authored andcommitted
Add complexity documentation for mapValues() (#18547)
1 parent 6eef42d commit 49f0295

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/Dictionary.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,8 @@ extension Dictionary {
879879
/// transformed value of the same or of a different type.
880880
/// - Returns: A dictionary containing the keys and transformed values of
881881
/// this dictionary.
882+
///
883+
/// - Complexity: O(*n*), where *n* is the length of the dictionary.
882884
@inlinable // FIXME(sil-serialize-all)
883885
public func mapValues<T>(
884886
_ transform: (Value) throws -> T

0 commit comments

Comments
 (0)