Structureswift-algorithms 1.2.1Algorithms
Iterator
The iterator for a Chain2Sequence
instance.
struct Iterator
The iterator for a Chain2Sequence
instance.
struct Iterator
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct Chain2Sequence<Base1, Base2> where Base1 : Sequence, Base2 : Sequence, Base1.Element == Base2.Element
A concatenation of two sequences with the same element type.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
func makeIterator() -> Iterator
protocol IteratorProtocol<Element>
A type that supplies the values of a sequence one at a time.
mutating func next() -> Base1.Element?