Structureswift-algorithms 1.2.0Algorithms
Iterator
The iterator for a UniquedSequence
instance.
struct Iterator
The iterator for a UniquedSequence
instance.
struct Iterator
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct UniquedSequence<Base, Subject> where Base : Sequence, Subject : Hashable
A sequence wrapper that leaves out duplicate elements of a base sequence.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
func makeIterator() -> Iterator
protocol IteratorProtocol<Element>
A type that supplies the values of a sequence one at a time.
mutating func next() -> Base.Element?