HeapIterator
public struct HeapIterator<H> : IteratorProtocol where H : Heap
The HeapIterator
used to conform to Sequence
Note
HeapIterator
conforms to IteratorProtocol
-
Internal heap used by the iterator
Declaration
Swift
var heap: H
-
Init method for the iterator
Declaration
Swift
init(_ heap: H)
-
The next item in the iteration.
Declaration
Swift
public mutating func next() -> H.T?
Return Value
The result of
Heap
.pull()
->T?