From f7c55d29deedecf524915fb959b008d7210bc67e Mon Sep 17 00:00:00 2001 From: Nate Cook Date: Tue, 28 Nov 2017 13:28:05 -0600 Subject: [PATCH] Update changelog for SE-0188 --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d90cd34e3d0f3..6456ed6123911 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,17 @@ CHANGELOG Swift 4.1 --------- +* [SE-0188][] + + Index types for most standard library collections now conform to `Hashable`. + These indices can now be used in key-path subscripts and hashed collections: + + ```swift + let s = "Hashable" + let p = \String.[s.startIndex] + s[keyPath: p] // "H" + ``` + * [SE-0143][] The standard library types `Optional`, `Array`, and `Dictionary` now conform to the `Equatable` protocol when their element types conform to `Equatable`. This allows the `==` operator to compose (e.g., one @@ -6810,3 +6821,4 @@ Swift 1.0 [SE-0184]: [SE-0185]: [SE-0186]: +[SE-0188]: