Hi,
In message "[ruby-talk:14502] Re: RCR: Array#insert"
on 01/05/02, "Guy N. Hurst" <gnhurst / hurstlinks.com> writes:
|> Hmm, there's tradeoff between inconsistency (to []= at least) and
|> handiness. Let me ponder for a while. Discussions are welcome.
|
|We did discuss this before also, in the thread starting at [ruby-talk:5692],
|http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/5692,
|and Weirich's post [ruby-talk:5700] cleared it up, I think:
|
|>>>
|Don't think of it as "insert before" or "insert after". Think of it
|as "insert at". After the assertion, the inserted value will be *at*
|the given index.
You've succeeded to persuade me.
matz.