lib/hamster/stack.rb in hamster-1.0.1.pre.rc.1 vs lib/hamster/stack.rb in hamster-1.0.1.pre.rc2
- old
+ new
@@ -35,9 +35,11 @@
def push(item)
transform { @list = @list.cons(item) }
end
def_delegator :self, :push, :<<
def_delegator :self, :push, :enqueue
+ def_delegator :self, :push, :conj
+ def_delegator :self, :push, :conjoin
def pop
list = @list.tail
if list.empty?
EmptyStack