class Enumerator

Public Instance Methods

lazy_zip(with) click to toggle source
# File lib/five_leaves/lazy_enum.rb, line 20
def lazy_zip(with)
  Enumerator.new do |yielder|
    loop do
      yielder << [self.next, with.next]
    end
  end
end