From: Jim Freeze Date: 2001-02-21T22:56:58+09:00 Subject: [ruby-talk:11235] array1 << array2 Hi all: How would I get the following results (the ruby way): a = [1,2] b = [3,4] If I do a << b => a = [1,2,[3,4]] (not what I want.) I want a = [1,2,3,4] I can get this with: b.each {|i| a << i } => a = [1,2,3,4] But this seems kludgy. Is there a better way? Also, I don't want to have to flatten a. Thanks ==================================================== Jim Freeze jim@freeze.org --------------------------------------------------- ** http://www.freeze.org ** ====================================================