in reply to the '..' operator and decreasing values

If you think about it, it makes sense; it's not "all values between X and Y", but rather "all values greater than X and lower than Y".

If Y is smaller than X, of course, you get an empty list, but that can really be helpful, in some cases.

  • Comment on Re: the '..' operator and decreasing values

Replies are listed 'Best First'.
Re^2: the '..' operator and decreasing values
by shemp (Deacon) on Mar 05, 2005 at 00:03 UTC
    Actually, its all values greater than OR EQUAL to X, and less than OR EQUAL to Y.