mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
[OrderedCollections] Doc updates
This commit is contained in:
1 parent
b2f254384d
commit
aaeeb9e440
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
# ``Collections/OrderedSet/UnorderedView``
|
||||
# ``OrderedCollections/OrderedSet/UnorderedView``
|
||||
|
||||
<!-- Summary -->
|
||||
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ extension OrderedDictionary {
|
||||
_values.removeAll(keepingCapacity: keepCapacity)
|
||||
}
|
||||
|
||||
/// Removes and returns the element at the specified position.
|
||||
/// Removes and returns the key-value pair at the specified index.
|
||||
///
|
||||
/// All the elements following the specified position are moved to close the
|
||||
/// resulting gap.
|
||||
|
||||
@@ -658,7 +658,7 @@ extension OrderedDictionary {
|
||||
/// in a string:
|
||||
///
|
||||
/// let message = "Hello, Elle!"
|
||||
/// var letterCounts: [Character: Int] = [:]
|
||||
/// var letterCounts: OrderedDictionary<Character, Int> = [:]
|
||||
/// for letter in message {
|
||||
/// letterCounts.updateValue(forKey: letter, default: 0) { count in
|
||||
/// count += 1
|
||||
|
||||
@@ -531,7 +531,7 @@ extension OrderedSet {
|
||||
}
|
||||
|
||||
extension OrderedSet {
|
||||
/// Returns a new ordered set containing the values pairs of the ordered set
|
||||
/// Returns a new ordered set containing all the members of this ordered set
|
||||
/// that satisfy the given predicate.
|
||||
///
|
||||
/// - Parameter isIncluded: A closure that takes a value as its
|
||||
|
||||
Reference in new issue
Block a user