Kotlin durations don't support ranges with steps. :/

I was hoping this would be ok. It wasn’t. FR: Have Durations support ranges so I can do this expression.

for(i in Duration.ZERO..maxDuration step offset) { ... }

I think getting it to work would involve something like Traversing through dates with Kotlin range expressions

Yes or something like that: Custom Range Iterator

And then add an infix function.