Hello --

On Thu, 17 Jan 2002, Joseph Benik wrote:

> Ok i had two ideas for the next version of ruby but can only remember
> one at the moment.....
>
> tr should only require one argument, the second argument should
> default to '' if it isn't supplied.  this seems in the spirit of
> ruby's path of least resistance, and would be backwards compatible
>
> example:
>
> "string".tr('g')  =>  "strin"

Isn't it then doing exactly what String#delete does?


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav