Structureswift-algorithms 1.2.0Algorithms
Iterator
The iterator for a Product2Sequence
sequence.
struct Iterator
The iterator for a Product2Sequence
sequence.
struct Iterator
where Base1:Sequence, Base2:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct Product2Sequence<Base1, Base2> where Base1 : Sequence, Base2 : Collection
A sequence that represents the product of two sequences’ elements.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
func makeIterator() -> Iterator
typealias Element = (Base1.Element, Base2.Element)
protocol IteratorProtocol<Element>
A type that supplies the values of a sequence one at a time.
mutating func next() -> (Base1.Element, Base2.Element)?