MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / last

Method last

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

Source from the content-addressed store, hash-verified

11 return self._header._next._element
12
13 def last(self):
14 if self.is_empty():
15 raise Empty("Dequeu is empty")
16 return self._trailer._previous._element
17
18 def insert_first(self, element):
19 self._insert_between(element, self._header, self._trailer)

Callers

nothing calls this directly

Calls 2

EmptyClass · 0.70
is_emptyMethod · 0.45

Tested by

no test coverage detected