From: Mathieu Bouchard Date: 2000-10-23T14:29:26+09:00 Subject: [ruby-talk:5768] Re: Array#insert > def update(anArray) > @theArray.insert(@index, anArray) > end > For me it's obvious (or I should put, I expect) insert in above code does > change @theArray. A side effect which would create a new array, change it > and finally return would be dangerous. Ok, maybe I'm missing something, but why don't you write it: @theArray[@index,0] = anArray or is the []= considered "unclear"?... then why :[]= is there in the first place? and if .insert(i,*e) is to be added, then why not .delete(i,n) as well?... and .splice(i,n,*e) ??? matju