You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/TSPL/TSPL.docc/LanguageGuide/CollectionTypes.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,9 @@ and its size and contents can't be changed.
54
54
An *array* stores values of the same type in an ordered list.
55
55
The same value can appear in an array multiple times at different positions.
56
56
57
-
> Note: Swift's `Array` type is bridged to Foundation's `NSArray` class.For more information about using `Array` with Foundation and Cocoa,
57
+
> Note: Swift's `Array` type is bridged to Foundation's `NSArray` class.
58
+
>
59
+
> For more information about using `Array` with Foundation and Cocoa,
58
60
> see [Bridging Between Array and NSArray](https://developer.apple.com/documentation/swift/array#2846730).
59
61
60
62
### Array Type Shorthand Syntax
@@ -580,7 +582,9 @@ in a collection with no defined ordering.
580
582
You can use a set instead of an array when the order of items isn't important,
581
583
or when you need to ensure that an item only appears once.
582
584
583
-
> Note: Swift's `Set` type is bridged to Foundation's `NSSet` class.For more information about using `Set` with Foundation and Cocoa,
585
+
> Note: Swift's `Set` type is bridged to Foundation's `NSSet` class.
586
+
>
587
+
> For more information about using `Set` with Foundation and Cocoa,
584
588
> see [Bridging Between Set and NSSet](https://developer.apple.com/documentation/swift/set#2845530).
585
589
586
590
<!--
@@ -605,7 +609,7 @@ are also hashable by default.
605
609
> by making them conform to the `Hashable` protocol
606
610
> from the Swift standard library.
607
611
> For information about implementing the required `hash(into:)` method,
608
-
> see [Hashable](https://developer.apple.com/documentation/swift/hashable).
612
+
> see [`Hashable`](https://developer.apple.com/documentation/swift/hashable).
609
613
> For information about conforming to protocols, see <doc:Protocols>.
610
614
611
615
### Set Type Syntax
@@ -1027,7 +1031,9 @@ You use a dictionary when you need to look up values based on their identifier,
1027
1031
in much the same way that a real-world dictionary is used to look up
1028
1032
the definition for a particular word.
1029
1033
1030
-
> Note: Swift's `Dictionary` type is bridged to Foundation's `NSDictionary` class.For more information about using `Dictionary` with Foundation and Cocoa,
1034
+
> Note: Swift's `Dictionary` type is bridged to Foundation's `NSDictionary` class.
1035
+
>
1036
+
> For more information about using `Dictionary` with Foundation and Cocoa,
1031
1037
> see [Bridging Between Dictionary and NSDictionary](https://developer.apple.com/documentation/swift/dictionary#2846239).
0 commit comments