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

Method top

linked_lists/linked_stack.py:29–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 self._size += 1
28
29 def top(self):
30 if self.is_empty():
31 raise Empty("stack is empty")
32 return self._head._element
33
34
35 def pop(self):

Callers

nothing calls this directly

Calls 2

is_emptyMethod · 0.95
EmptyClass · 0.70

Tested by

no test coverage detected