On Thu, 15 Jan 2004 00:33:41 +0900, Johan Holmberg wrote: > I have been searching for a method to concatenate several arrays. > A had an Array like this > > arr1 = [ [1,2,3], [4,5,6], [7,[8,9]] ] > > and wanted to produce > > arr2 = [1, 2, 3, 4, 5, 6, 7, [8, 9]] [snip] > But I feel that the thing I want to do (concatenating a variable > number arrays) is such a natural thing, that it deserves a cleaner > way of being expressed. how about arr1.flatten_once ? http://raa.ruby-lang.org/list.rhtml?name=flattenx -- Simon Strandgaard