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

Method set_head

linked_lists/linked_list.py:8–9  ·  view source on GitHub ↗
(self, head_node)

Source from the content-addressed store, hash-verified

6 self.head_ = None
7
8 def set_head(self, head_node):
9 self.head_ = head_node
10
11 def __len__(self):
12 count = 0

Callers 1

pushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected