Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ getItem
Method
getItem
recipes/Python/577898_23_Tree/recipe-577898.py:210–213 ·
view source on GitHub ↗
(self, a)
Source
from the content-addressed store, hash-verified
208
return
self.links[idx]
209
210
def
getItem(self, a):
211
if
self.contains(a):
212
return
self.values[self.values.index(a)]
213
return
None
214
215
216
class
TTTree(object):
Callers
nothing calls this directly
Calls
2
contains
Method · 0.95
index
Method · 0.45
Tested by
no test coverage detected