Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OrderedDictionary] Explicitly mention in documentation that keys/values are ordered #275

Merged
merged 1 commit into from Apr 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -159,7 +159,7 @@
/// original dictionary value.)
///
/// The ``values-swift.property`` collection is a mutable random-access
/// collection of the values in the dictionary:
/// ordered collection of the values in the dictionary:
///
/// d.values // "two", "one", "zero"
/// d.values[2] = "nada"
Expand Down Expand Up @@ -219,15 +219,15 @@ public struct OrderedDictionary<Key: Hashable, Value> {
}

extension OrderedDictionary {
/// A read-only collection view for the keys contained in this dictionary, as
/// A read-only ordered collection view for the keys contained in this dictionary, as
/// an `OrderedSet`.
///
/// - Complexity: O(1)
@inlinable
@inline(__always)
public var keys: OrderedSet<Key> { _keys }

/// A mutable collection view containing the values in this dictionary.
/// A mutable collection view containing the ordered values in this dictionary.
///
/// - Complexity: O(1)
@inlinable
Expand Down