Skip to content

Commit f7c55d2

Browse files
committed
Update changelog for SE-0188
1 parent 04518af commit f7c55d2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ CHANGELOG
2222
Swift 4.1
2323
---------
2424

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+
2536
* [SE-0143][] The standard library types `Optional`, `Array`, and
2637
`Dictionary` now conform to the `Equatable` protocol when their element types
2738
conform to `Equatable`. This allows the `==` operator to compose (e.g., one
@@ -6810,3 +6821,4 @@ Swift 1.0
68106821
[SE-0184]: <https://github.com/apple/swift-evolution/blob/master/proposals/0184-unsafe-pointers-add-missing.md>
68116822
[SE-0185]: <https://github.com/apple/swift-evolution/blob/master/proposals/0185-synthesize-equatable-hashable.md>
68126823
[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>

0 commit comments

Comments
 (0)