MCPcopy
hub / github.com/jwasham/practice-python / pop

Method pop

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

Source from the content-addressed store, hash-verified

26
27 # Pops an item from the front of the list
28 def pop(self):
29 if self.head_:
30 self.head_ = self.head_.get_next()
31 else:
32 raise IndexError("Unable to pop from empty list")
33
34 # Returns true if list contains the given value.
35 def contains(self, value):

Callers 7

mainFunction · 0.95
array_testFunction · 0.80
dfsMethod · 0.80
contains_cycleMethod · 0.80
topological_sortMethod · 0.80
scc_dfs_reverse_passMethod · 0.80
dfs_iterativeMethod · 0.80

Calls 1

get_nextMethod · 0.80

Tested by

no test coverage detected