Simplify reversed for-loop.