Type Alias

Data.Indices

A type used to indicate a range of positions in a data's buffer.

Declaration

typealias Data.Indices = Range<Int>

See Also

Manipulating Index Ranges

func distance(from: Int, to: Int) -> Int

Returns the distance between two indices.