Instance Subscriptswift-algorithms 1.2.1Algorithms
subscript(_:)
Chunked.swift:329subscript(position: Index) -> Element { get }
subscript(position: Index) -> Element { get }
s10Algorithms23EvenlyChunkedCollectionVy11SubSequenceQzAC5IndexVyx_Gcip
What are these?13Q1G
where Base:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct EvenlyChunkedCollection<Base> where Base : Collection
A collection wrapper that evenly breaks a collection into a given number of chunks.
struct Index
typealias Element = Base.SubSequence
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(_ i: Index, offsetBy distance: Int) -> Index
func index(_ i: Index, offsetBy distance: Int, limitedBy limit: Index) -> Index?
func index(after i: Index) -> Index