lib/silly_list/uniq_lifo.rb
# Adds an item to the list
#
# @param [<Object, Array>] object to be added
# @return [UniqLifo]
Adds an item to the list
Adds an item to the list
def add(item)
      return unless item
      delete(item)
      add_at_beginning(item)
      remove_last if size_exceeded?
      self
    end
def add ( item ) return unless item delete ( item ) add_at_beginning ( item ) remove_last if size_exceeded? self end
Adds an item to the list
Adds an item to the list
None
UniqLifo
item
object to be added
object to be added