From: Jack Bauer Date: 2009-04-30T02:37:53+09:00 Subject: Advanced array merging Hi everyone, I'm looking for the fastest way (or the version with the least code!) to consolidate a couple of arrays. Basically, what a dump of what I have is this: [[#, #, #, #, #], [#, #, #, #, #], [#, #, #, #, #]] I need to be able to grab the first record of each array (that happens to be within the outer array) and merge them into one, keeping the class, ID, and dtime of the first of the three and the SUMMED counter of all three. In reality there could be anywhere between 2 and 30 arrays in there each with any number of records. So let's say we have: # + # + # = # -- Posted via http://www.ruby-forum.com/.