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

Method push

linked_lists/linked_list.py:60–63  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

58
59 # Pushes an item on the front of the list.
60 def push(self, value):
61 node = Node(value)
62 node.set_next(self.head_)
63 self.set_head(node)
64
65 def append(self, value):
66 node = Node(value)

Callers 1

mainFunction · 0.95

Calls 3

set_nextMethod · 0.95
set_headMethod · 0.95
NodeClass · 0.90

Tested by

no test coverage detected