Instance Methodswift-algorithms 1.2.1Algorithms
index(_:offsetBy:limitedBy:)
Joined.swift:294func index(_ index: Index, offsetBy distance: Int, limitedBy limit: Index) -> Index?
func index(_ index: Index, offsetBy distance: Int, limitedBy limit: Index) -> Index?
s10Algorithms25JoinedByClosureCollectionV5index_06offsetC007limitedC0AC5IndexVyxq__GSgAI_SiAItF
What are these?8C8KJ
where Base:Collection, Base.Element:Collection, Separator:Collection, Separator.Element == Base.Element.Element
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct JoinedByClosureCollection<Base, Separator> where Base : Collection, Separator : Collection, Base.Element : Collection, Separator.Element == Base.Element.Element
A collection that presents the elements of a base collection of collections concatenated using a given separator that depends on the collections right before and after it.
struct Index
@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(position: Index) -> Base.Element.Element { get }
func distance(from start: Index, to end: Index) -> Int
func index(_ index: Index, offsetBy distance: Int) -> Index
func index(after index: Index) -> Index