From: Christoph Date: 2002-04-28T02:20:47+09:00 Subject: Re: Numberic#prev "Yukihiro Matsumoto" 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