mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user