Method: Array#rzip

Defined in:
lib/epitools/core_ext/array.rb

#rzip(other) ⇒ Object

zip from the right (or reversed zip.)

eg:

>> [5,39].rzip([:hours, :mins, :secs])
=> [ [:mins, 5], [:secs, 39] ]


53
54
55
56
# File 'lib/epitools/core_ext/array.rb', line 53

def rzip(other)
  reverse_each.zip(other.reverse_each).reverse_each
  # reverse.zip(other.reverse).reverse # That's a lotta reverses!
end