Bet this code does something you didn't expect: array = http://Array.new (100, "") array.each {|x| x.prepend("Hello world") }
It actually makes more sense than `.dup` IMO, given the lack of any deep copy in Ruby
-
-
I didn’t get it until I did: a = http://Array.new (100, "") a.first.prepend("Hi")
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.