`Range#last(n)` with a single-element of Integer returns an empty Array. It should return a one-element Array. Interestingly, when the element is a String, `last(n)` returns a one-element Array, expectedly. I have checked the behav...masasakano (Masa Sakano)
The returned values of Range#size between Rational and Float and also with regard to `exclude_end` of true and false are inconsistent. The example below highlights the difference. The first and second should return the same value. The...masasakano (Masa Sakano)
When a (Numeric) argument is given to `Range#last(n)` for a Range with `Float::INFINITY`, it runs into an infinite loop (see a small code snippet below). There is no use case for the feature as far as I can think of, and it is hard to d...masasakano (Masa Sakano)
When `Range` consists of any Numeric, according to [Official docs for Ruby-3.1.2](https://ruby-doc.org/core-3.1.2/Range.html#method-i-size), `Range#size` should, > Returns the count of elements in self if both begin and end values ar...masasakano (Masa Sakano)
`Range#size` should, according to [Official docs](https://ruby-doc.org/core-3.1.2/Range.html#method-i-size), > Returns the count of elements in self if both begin and end values are numeric; otherwise, returns nil but it doesn't wi...masasakano (Masa Sakano)