From: Thomas Wieczorek Date: 2007-11-23T05:25:47+09:00 Subject: Re: Iterate through Array? You might also try the Permutations gem at http://permutation.rubyforge.org/