Instance Methodswift-algorithms 1.2.1Algorithms
distance(from:to:)
Joined.swift:198func distance(from start: Index, to end: Index) -> Int
func distance(from start: Index, to end: Index) -> Int
s10Algorithms18JoinedByCollectionV8distance4from2toSiAC5IndexVyxq__G_AItF
What are these?545VA
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 JoinedByCollection<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.
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 index(_ index: Index, offsetBy distance: Int) -> Index
func index(_ index: Index, offsetBy distance: Int, limitedBy limit: Index) -> Index?
func index(after index: Index) -> Index