MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / delete_first

Method delete_first

linked_lists/linked_deque.py:24–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self._insert_between(element, self._trailer._previous, self._trailer)
23
24 def delete_first(self):
25 if self.is_empty():
26 raise Empty("Deque is empty")
27 return self._delete_node(self._header._next)
28
29 def delete_last(self):
30 if self.is_empty():

Callers

nothing calls this directly

Calls 3

_delete_nodeMethod · 0.80
EmptyClass · 0.70
is_emptyMethod · 0.45

Tested by

no test coverage detected