"Yukihiro Matsumoto" <matz / ruby-lang.org> wrote in
....
>
> |*) No one seems to think Integer#prev is a bad idea
>
> It's not bad, but useless.  "succ" is useful with polymorphism as used
> in Range, but no other non-numeric class defines "prev", there's no
> benefit.  what's wrong with "n-1"?

On the other hand what is useful about

    (2.2..4.3)  == (2..4)    # => false
    (2.2...4.3)  == (2...4)  # => false
    (2.2..4.3).to_a            # =>  [2,3,4]
    (2.2...4.3).to_a           # => [2,3].


/Christoph