Structureswift-algorithms 1.2.1Algorithms
Iterator
The iterator for a PermutationsSequence
instance.
struct Iterator
The iterator for a PermutationsSequence
instance.
struct Iterator
where Base:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct PermutationsSequence<Base> where Base : Collection
A sequence of all the permutations of a collection’s elements.
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
func makeIterator() -> Iterator
protocol IteratorProtocol<Element>
A type that supplies the values of a sequence one at a time.
mutating func next() -> [Base.Element]?