From: gwtmp01@... Date: 2007-01-22T08:44:33+09:00 Subject: Re: Hash pairs at? On Jan 21, 2007, at 3:50 PM, dblack@wobblini.net wrote: > That's the idea, though flattenx lets you do flatten_by(n) and also is > written in C for speed. I didn't see anyone else mention that in Ruby 1.9... $ ri-1.9 Array#flatten ---------------------------------------------------------- Array#flatten array.flatten -> an_array array.flatten(level) -> an_array ------------------------------------------------------------------------ Returns a new array that is a one-dimensional flattening of this array (recursively). That is, for every element that is an array, extract its elements into the new array. If the optional _level_ argument determins the level of recursion to flatten. Gary Wright