Instance Subscriptswift-algorithms 1.2.1Algorithms
subscript(_:)
Reductions.swift:518subscript(index: Index) -> Base.Element { get }
subscript(index: Index) -> Base.Element { get }
s10Algorithms27InclusiveReductionsSequenceVAASlRzrlEy7ElementQzAcASlRzrlE5IndexVyx_Gcip
What are these?95SA0
where Base:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct InclusiveReductionsSequence<Base> where Base : Sequence
struct Index
associatedtype Element where Self.Element == Self.Iterator.Element
A type representing the sequence’s elements.
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
var endIndex: Index { get }
var startIndex: Index { get }
func distance(from start: Index, to end: Index) -> Int
func index(after index: Index) -> Index