[stdlib] String : RangeReplaceableCollection & BidirectionalCollection (#8921)

* [stdlib] String : RangeReplaceableCollection & BidirectionalCollection

* Add source compatibility hack for Swift.max

* Add source compatibility hack for Swift.min

* Remove redundant conformance in benchmarks

* Fix stupid typo I thought I'd already pushed

* XFAIL testing now-redundant conformance

* XFAIL an IDE test for now
This commit is contained in:
Maxim Moiseev
2017-04-23 20:04:54 -07:00
committed by Ben Cohen
parent 463c6e48bb
commit 1c1b2b966d
14 changed files with 78 additions and 83 deletions

View File

@@ -23,9 +23,6 @@ var editWords: [String] = [
"gastroperiodynia",
]
// FIXME: remove when String is a Collection
extension String: RangeReplaceableCollection { }
let alphabet = "abcdefghijklmnopqrstuvwxyz"
/// All edits that are one edit away from `word`
func edits(_ word: String) -> Set<String> {