SonOfLilit wrote:
> Ah, sorry. tryruby.hobix.com helped me find that hash.map() is
> identical to hash.to_a

Well the problem was that I just came across Set.divide and wanted to 
demonstrate it on an example - so I dug out an older problem of mine 
where I thought I can show it off - you have seen the result.

I think this was a typical manifestation of the 'If you have a hammer, 
everything looks like a nail' problem.

I guess if my goal would have been solving the task at hand, rather than 
putting 'divide' into action, I would come up with a solution similar to 
yours...

Thanks for the suggestion!

Cheers,
Peter
__
http://www.rubyrailways.com :: Ruby and Web2.0 blog
http://scrubyt.org :: Ruby web scraping framework
http://rubykitchensink.ca/ :: The indexed archive of all things Ruby