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/.