Generic Function

stride(from:to:by:)

Returns the sequence of values (self, self + stride, self + 2 * stride, … last) where last is the last value in the progression that is less than end.

Declaration

func stride<T>(from start: T, to end: T, by stride: T.Stride) -> StrideTo<T> where T : Strideable

Relationships

Generic Constraints

  • T : Strideable
    

See Also

Strides

func stride<T>(from: T, through: T, by: T.Stride)

Returns the sequence of values (self, self + stride, self + 2 * stride, … last) where last is the last value in the progression less than or equal to end.