From: "Simon Kröger" Date: 2006-02-05T06:22:55+09:00 Subject: Re: Quiz #65, Principle of Great Surprise, and Array.delete sledgehammer > Why isn't that the Ruby Way? What am I missing here? > > Help? You obviously know how to code such a method yourself and i can't answer why for example Array#- doesn't work that way (had to learn that myself). The shortest solution i came up with is ar = [1, 2, 3, 8, 15, 15, 8] p ar.values_at(*(0...ar.size).to_a - [ar.index(15)]) => [1, 2, 3, 8, 15, 8] p ar.values_at(*(0...ar.size).to_a - [ar.index(14)]) => [1, 2, 3, 8, 15, 15, 8] p ar.values_at(*(0...ar.size).to_a - [ar.index(nil)]) => [1, 2, 3, 8, 15, 15, 8] cheers Simon