MCPcopy
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / search

Method search

Lists.py:44–52  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

42 return count
43
44 def search(self, item):
45 current = self.head
46 found = False
47 while current != None and not found:
48 if current.getData() == item:
49 found = True
50 else:
51 current = current.getNext()
52 return found
53
54 def remove(self, item):
55 current = self.head

Callers 2

Lists.pyFile · 0.80

Calls 2

getDataMethod · 0.80
getNextMethod · 0.80

Tested by

no test coverage detected