From: "Kroeger Simon (ext)" Date: 2005-09-22T17:11:42+09:00 Subject: Re: hi, i'm new. plus one question > require 'generator' > > xy = [["a","b"],["c","d"],["e","f"]] > yx = SyncEnumerator.new(*xy).collect > p yx > > => [["a", "c", "e"], ["b", "d", "f"]] > > I think there's another way in one of the standard libraries, but I > don't have a memory, so I just remember generally useful things like > SyncEnumerator and work from first principles. just helping your memory: p xy.transpose #=> [["a", "c", "e"], ["b", "d", "f"]] cheers Simon