stride

func stride<T : Strideable>(from: T, to: 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 that is less than end.

Declaration

func stride<T : Strideable>(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.

Note: There is no guarantee that end is an element of the sequence.

Declaration