What happened to my comments...
Functional indirection like this only causes confusion. There's nothing wrong with writing the loops explicitly.
They're common, and when you see them, you know exactly what they do.
The fact that they're indented doesn't matter. If you want to clean up the indented code, put a single call to a function on the third level, and write your code outside that loop and inside that function.