vendor/gems/rubyzip-0.9.1/lib/quiz1/t/solutions/Moses Hohman/util.rb
# "Peels" off a tuple of the elements at each successive index across multiple arrays.
# Assumes self is an array of these multiple arrays. Stops when any of the arrays is 
# exhausted. I stole this from a ruby mailing list somewhere. I also considered calling this each_tuple
"Peels" off a tuple of the elements at each successive index across multiple arrays.
Assumes self is an array of these multiple arrays. Stops when any of the arrays is
exhausted. I stole this from a ruby mailing list somewhere. I also considered calling this each_tuple
" Peels " off a tuple of the elements at each successive index across multiple arrays . Assumes self is an array of these multiple arrays . Stops when any of the arrays is exhausted . I stole this from a ruby mailing list somewhere . I also considered calling this each_tuple
def peel(&p)
        collect { |a|
            a.length
        }.min.times { |i|
            yield collect { |a| a[i] }
        }
    end
def peel ( & p ) collect { | a | a . length } . min . times { | i | yield collect { | a | a [ i ] } } end
"Peels" off a tuple of the elements at each successive index across multiple arrays.
" Peels " off a tuple of the elements at each successive index across multiple arrays .
p
<not_specific>