Instance Propertyswift-algorithms 1.2.1Algorithms
endIndex
Stride.swift:164var endIndex: Index { get }
var endIndex: Index { get }
s10Algorithms18StridingCollectionV8endIndexAC0E0Vyx_Gvp
What are these?4XVJC
where Base:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct StridingCollection<Base> where Base : Collection
A wrapper that strides over a base collection.
struct Index
A position in a StridingCollection
instance.
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
var count: Int { get }
var startIndex: Index { get }
subscript(i: Index) -> Base.Element { get }
func distance(from start: Index, to end: Index) -> Int
func index(_ i: Index, offsetBy distance: Int) -> Index
func index(_ i: Index, offsetBy n: Int, limitedBy limit: Index) -> Index?
func index(after i: Index) -> Index
func striding(by step: Int) -> StridingCollection<Base>