For-in loop combining sequence and range

That wouldn't compile, would it? ;-)
It's quite clear that the functional approach is more complicated* — and that may not only be the case for the writer, but also for the reader (and the compiler as well).
Giving for some of the powers other statements had for a long time, we could also address the issues SE-0231 tried to solve (SE-0231 — Optional iteration - #108 by Michael_Ilseman).

* Actually, I think flatMap would be the best alternative

2 Likes