File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,17 @@ CHANGELOG
22
22
Swift 4.1
23
23
---------
24
24
25
+ * [ SE-0188] [ ]
26
+
27
+ Index types for most standard library collections now conform to ` Hashable ` .
28
+ These indices can now be used in key-path subscripts and hashed collections:
29
+
30
+ ``` swift
31
+ let s = " Hashable"
32
+ let p = \String .[s.startIndex ]
33
+ s[keyPath : p] // "H"
34
+ ```
35
+
25
36
* [ SE-0143] [ ] The standard library types ` Optional ` , ` Array ` , and
26
37
`Dictionary` now conform to the `Equatable` protocol when their element types
27
38
conform to `Equatable`. This allows the `==` operator to compose (e.g., one
@@ -6810,3 +6821,4 @@ Swift 1.0
6810
6821
[SE- 0184 ]: < https: // github.com/apple/swift-evolution/blob/master/proposals/0184-unsafe-pointers-add-missing.md>
6811
6822
[SE- 0185 ]: < https: // github.com/apple/swift-evolution/blob/master/proposals/0185-synthesize-equatable-hashable.md>
6812
6823
[SE- 0186 ]: < https: // github.com/apple/swift-evolution/blob/master/proposals/0186-remove-ownership-keyword-support-in-protocols.md>
6824
+ [SE- 0188 ]: < https: // github.com/apple/swift-evolution/blob/master/proposals/0188-stdlib-index-types-hashable.md>
You can’t perform that action at this time.
0 commit comments