From: "Bartosz Dziewoński" Date: 2012-04-14T17:31:51+09:00 Subject: Re: unable to do "down" range? W dniu 14 kwietnia 2012 02:32 użytkownik Ralph Shnelvar napisał: > Bartosz, > > Friday, April 13, 2012, 3:55:46 PM, you wrote: > > BD> Now what should string[1..-2] do in your version? And would the end > BD> result with at least 3 different behaviors for ranges make any sense? > > I'm not sure what string[1..2] is supposed to do.  What do you mean it to do? string[1..-2], with a minus. It currently returns first to second-to-last letters of the string. As in: irb(main):001:0> string = 'abcdefg' => "abcdefg" irb(main):002:0> string[1..-2] => "bcdef" -- Matma Rex