sorry, this is fixed version. ``` infix fun Closed...
# announcements
w
sorry, this is fixed version.
Copy code
infix fun ClosedFloatingPointRange<Float>.step(step: Float) = Iterable {
  object : Iterator<Float> {
    private val precision = step / 2
    private var nextIndex = 0

    override fun hasNext()
        = start + nextIndex * step <= endInclusive + precision

    override fun next() = start + nextIndex++ * step
  }
}