Class: Tweed::Monads::List
Instance Method Summary
collapse
[], #bind, #lift_m2, return
Instance Method Details
15
16
17
|
# File 'lib/tweed/monads/list.rb', line 15
def +(other)
self.class.new(self.to_a + other.to_a)
end
|
#==(other) ⇒ Object
27
28
29
|
# File 'lib/tweed/monads/list.rb', line 27
def ==(other)
self.to_a == other.to_a
end
|
19
20
21
|
# File 'lib/tweed/monads/list.rb', line 19
def inspect
"#{self.class.inspect} :: #{@sequence.inspect}"
end
|
23
24
25
|
# File 'lib/tweed/monads/list.rb', line 23
def to_a
@sequence.to_a
end
|