From: Daniel Lucraft Date: 2007-06-03T18:39:09+09:00 Subject: Re: Looking for an array method Sun Park wrote: > Are there any methods which work exactly like []= but return the changed > array, different from []= which returns void? Array#fill? a = [0, 1, 2, 3] => [0, 1, 2, 3] irb(main):006:0> a.fill("x", 2..2) => [0, 1, "x", 3] -- Posted via http://www.ruby-forum.com/.