kernel/common/array.rb
# Removes and returns the last element from the Array.
Removes and returns the last element from the Array.
Removes and returns the last element from the Array .
def pop()
    return nil if empty?
    @total -= 1
    index = @start + @total
    elem = @tuple.at(index)
    @tuple.put(index,nil)
    reallocate_shrink()
    elem
  end
def pop ( ) return nil if empty? @total -= 1 index = @start + @total elem = @tuple . at ( index ) @tuple . put ( index , nil ) reallocate_shrink ( ) elem end
Removes and returns the last element from the Array.
Removes and returns the last element from the Array .