lib/gamebox/lib/linked_list.rb
# only removed the first instance of e
only removed the first instance of e
only removed the first instance of e
def remove(e)
    i = @head.next
    while @tail != i
      if i.obj == e
        i.prev.next = i.next
        i.next.prev = i.prev
        return i.obj
      end
      i = i.next
    end
    i
  end
def remove ( e ) i = @head . next while @tail != i if i . obj == e i . prev . next = i . next i . next . prev = i . prev return i . obj end i = i . next end i end
only removed the first instance of e
only removed the first instance of e
# remove it
e
<not_specific>