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