 <p>I agree with the crowd saying that the 7 makes sense in this case, but I would add that in the case where the 6 is important, say you want to make clear you're only acting on objects up to the 6th index, then the &lt;= is better since it makes the 6 easier to see.</p>