Was the String contains(_:) method changed in Swift 4?

Which isn’t a huge surprise when you consider how tricky string containment is.

import Foundation

// U+00DF LATIN SMALL LETTER SHARP S

let s = "Friedrichstra\u{df}e"
let ss = "strasse"
if s.contains(s) {
    print("It's a street!")
}

Share and Enjoy

···

On 8 Nov 2017, at 08:47, Martin R via swift-users <swift-users@swift.org> wrote:

but apparently only if Foundation is imported.

--
Quinn "The Eskimo!" <http://www.apple.com/developer/&gt;
Apple Developer Relations, Developer Technical Support, Core OS/Hardware