MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / __getitem__

Method __getitem__

functional/pipeline.py:132–140  ·  view source on GitHub ↗

Gets item at given index. :param item: key to use for getitem :return: item at index key

(self, item)

Source from the content-addressed store, hash-verified

130 return self.size() != 0
131
132 def __getitem__(self, item):
133 """
134 Gets item at given index.
135
136 :param item: key to use for getitem
137 :return: item at index key
138 """
139 self.cache()
140 return _wrap(self.sequence[item])
141
142 def __reversed__(self):
143 """

Callers

nothing calls this directly

Calls 2

cacheMethod · 0.95
_wrapFunction · 0.85

Tested by

no test coverage detected