Structureswift-algorithms 1.2.1Algorithms
Iterator
The iterator for an AdjacentPairsSequence
or AdjacentPairsCollection
instance.
struct Iterator
The iterator for an AdjacentPairsSequence
or AdjacentPairsCollection
instance.
struct Iterator
where Base:Sequence
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct AdjacentPairsSequence<Base> where Base : Sequence
A sequence of adjacent pairs of elements built from an underlying sequence.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
var underestimatedCount: Int { get }
func makeIterator() -> Iterator
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol IteratorProtocol<Element>
A type that supplies the values of a sequence one at a time.
mutating func next() -> Element?
typealias Element = (Base.Element, Base.Element)