step

infix fun ClosedFloatingPointRange<Double>.step(step: Double): DoubleBuffer

Convert double range to sequence.

If the step is positive, then the sequence starts with the lower boundary and increments by step until current value is lower than upper boundary. The boundary itself is unnecessarily included.

If step is negative, the same goes from upper boundary downwards

Sources

Link copied to clipboard