From: Michael Davis Date: 2001-02-20T16:26:53+09:00 Subject: [ruby-talk:11157] Re: Array.insert_at Thanks for the quick response. Nice solution! I am surprised that I overlooked this in the book. Is there a binary search function for sorted arrays? My attempts to create one are proving to be slow. -----Original Message----- From: Yukihiro Matsumoto [SMTP:matz@zetabits.com] Sent: Monday, February 19, 2001 10:29 PM To: ruby-talk ML Subject: [ruby-talk:11154] Re: Array.insert_at Hi, In message "[ruby-talk:11153] Array.insert_at" on 01/02/20, Michael Davis writes: |Has anyone created a method called insert_at(index, value) for the Array |class? I would like this to expand the array and insert value at position |x. a = [1,2,3,4,5] a[2,0] = [12,13] matz.