Instance Subscriptswift-algorithms 1.2.1Algorithms
subscript(_:)
Reductions.swift:297subscript(position: Index) -> Result { get }
subscript(position: Index) -> Result { get }
s10Algorithms27ExclusiveReductionsSequenceVAASlRzrlEyq_AcASlRzrlE5IndexVyxq__Gcip
What are these?5X0S7
where Base:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct ExclusiveReductionsSequence<Base, Result> where Base : Sequence
A sequence of applying a transform to the element of a sequence and the previously transformed result.
struct Index
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