On Sun, 17 Dec 2000, Ben Tilly wrote:

> When you inspect you flatten the data into a string.  So you have
> an array of pairs of strings, and flattening doesn't do anything
> surprising.  Try this:
> 
>   a = [1, [], [3,4,[]]] .map do |e| [e, "hello"]  end .flatten
>   print a.inspect
> 
> See the extra flattening now?


Yes.  I'd completely not noticed the fact that my version only
"worked" because I was inspecting the block variable, not the
resulting array.  

By the way, I think we're setting a record for subject-line
irrelevance in this thread :-)  But it's probably played out --
see you in the next one....


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav