Structureswift-algorithms 1.2.1Algorithms
Iterator
The iterator for a UniquePermutationsSequence
instance.
struct Iterator
The iterator for a UniquePermutationsSequence
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 UniquePermutationsSequence<Base> where Base : Collection
A sequence of the unique permutations of the elements of a sequence or collection.
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]?