Structureswift-algorithms 1.2.0Algorithms
Iterator
Split.swift:53struct Iterator
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 SplitSequence<Base> where Base : Sequence
A sequence that lazily splits a base sequence into subsequences separated by elements that satisfy the given whereSeparator
predicate.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
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]