From: Martin DeMello Date: 2002-12-10T02:10:29+09:00 Subject: Re: multi-dimension array dblack@candle.superlink.net wrote: > > Couldn't you achieve the same thing with flatten? > > def deep_each > flatten.each {|e| yield e} > end LOL - so you could :) > (I haven't used the enum tools, so there may be aspects I'm > overlooking.) No, that had started off life as Enumerable#deep_each, and then moved over to Array because it recursed into Strings too. Forgot that Array already had a perfectly good solution. martin