Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/streams.rb

Instance Method Summary collapse

Instance Method Details

#to_streamObject



134
135
136
137
# File 'lib/streams.rb', line 134

def to_stream
  return Stream.new if empty?
  Stream.new( first ) { self[ 1..-1 ].to_stream }
end