More efficient for loops