Class: LazyArray

Inherits:
Array show all
Defined in:
lib/lazzay.rb

Direct Known Subclasses

AddArray, ForwardArray

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object

lazy array



25
26
27
28
29
30
# File 'lib/lazzay.rb', line 25

def +(other)
    if ! other.is_a?(LazyArray)
        other = LazyArray.new(other)
    end
    AddArray.new(self, other)
end