Class: DStream::Flatten2

Inherits:
Abstract show all
Defined in:
lib/d-stream.rb

Instance Method Summary collapse

Methods inherited from Abstract

#inspect

Instance Method Details

#apply(s) ⇒ Object



162
163
164
165
166
167
168
# File 'lib/d-stream.rb', line 162

def apply(s)
  Enumerator.new do |y|
    s.each do |es|
      es.each { |e| y << e }
    end
  end.lazy
end