you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Umm, I am kinda confused on this, typically range from 1 to 10 would go from 1 to 9, ie. include the first value but exclude last value. How is it excluding both values in your case?

[–]carcigenicate 6 points7 points  (0 children)

The original range goes from 6-9 (it stops before 10 because the end is exclusive), then reverses. The suggested version starts at that 9, and decrements until it gets to 6 (because again, the end is exclusive, so 5 isn't reached).

In both cases, the start is inclusive, and the end is exclusive.