Classes: Iterator
5 6 7 8 9 10 11
# File 'lib/slow_enumerator_tools/merger.rb', line 5 def self.merge(enums) enum = Iterator.new(enums).tap(&:start) Enumerator.new do |y| loop { y << enum.next } end.lazy end