[stdlib] Some minor cleanup (#18130)

* Remove case destructuring to _

* Remove some Iterator.Element

* Which idiot wrote this? Oh.

* Switch NibbleSort to just use default impls... shouldn't change perf
This commit is contained in:
Ben Cohen
2018-07-21 17:29:57 -07:00
committed by GitHub
parent 19104c0957
commit 4694310e51
34 changed files with 366 additions and 374 deletions

View File

@@ -69,7 +69,7 @@ public struct Tree<T: Comparable> {
public init() { }
// constructor from a sequence
public init<S: Sequence>(_ seq: S) where S.Iterator.Element == T {
public init<S: Sequence>(_ seq: S) where S.Element == T {
var g = seq.makeIterator()
while let x = g.next() {
self.insert(x)