Perl: the Markov chain saw | |
PerlMonks |
Re: the '..' operator and decreasing valuesby deibyz (Hermit) |
on Mar 07, 2005 at 11:49 UTC ( [id://437182]=note: print w/replies, xml ) | Need Help?? |
I think that the cause of this behaviour is the Mathematical definition of interval. An interval [ a , b ] is defined as (free definition) "Every number greater than a and lesser than b" (definition). So, if a=2 and b=1, there's no number with such condition. That's a valid definition for every set with a ">" operator, so it could work with any set (class) with ">" defined and a valid "generator" (++) (This last statement is only theory, someone with time to test).
In Section
Seekers of Perl Wisdom
|
|