Instance Methodswift-algorithms 1.2.1Algorithms
index(_:offsetBy:)
Windows.swift:130func index(_ i: Index, offsetBy distance: Int) -> Index
func index(_ i: Index, offsetBy distance: Int) -> Index
s10Algorithms24WindowsOfCountCollectionV5index_8offsetByAC5IndexVyx_GAH_SitF
What are these?96WVC
where Base:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct WindowsOfCountCollection<Base> where Base : Collection
A collection wrapper that presents a sliding window over the elements of a collection.
struct Index
A position in a WindowsOfCountCollection
instance.
@frozen struct Int
A signed integer value type.
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 }
subscript(index: Index) -> Base.SubSequence { get }
func distance(from start: Index, to end: Index) -> Int
func index(_ i: Index, offsetBy distance: Int, limitedBy limit: Index) -> Index?
func index(after index: Index) -> Index