3 ms·
10..100 is a Range in Ruby. 10..100 does include 100 (it includes both bounds). On the other hand 10...100 (note the three dots) does not.
by VeejayRampay 11y ago
10..100 is a Range in Ruby. 10..100 does include 100 (it includes both bounds). On the other hand 10...100 (note the three dots) does not.
- jschulenklopper 11y ago> On the other hand 10...100 (note the three dots) does not. reply > On the other hand 10...100 (note the three dots) does not. To be clear, 10...100 includes 10, but not 100. So, it includes one bound: the one mentioned first, the lower bound. (10...100).to_a => [10, 11, 12, 13, ... 98, 99]