Instance Subscriptswift-algorithms 1.2.1Algorithms
subscript(_:)
Chunked.swift:178subscript(position: Index) -> (Subject, Base.SubSequence) { get }
subscript(position: Index) -> (Subject, Base.SubSequence) { get }
s10Algorithms19ChunkedOnCollectionVyq__11SubSequenceQztAA0b2ByD0V5IndexVyxq__Gcip
What are these?4W6YR
where Base:Collection, Subject:Equatable
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct ChunkedOnCollection<Base, Subject> where Base : Collection, Subject : Equatable
A collection wrapper that breaks a collection into chunks based on a predicate.
typealias Index = ChunkedByCollection<Base, Subject>.Index
associatedtype SubSequence : Collection = Slice<Self> where Self.Element == Self.SubSequence.Element, Self.SubSequence == Self.SubSequence.SubSequence
A collection representing a contiguous subrange of this collection’s elements. The subsequence shares indices with the original collection.
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
protocol Equatable
A type that can be compared for value equality.
var endIndex: Index { get }
var startIndex: Index { get }
func index(after i: Index) -> Index