Iterate through (index, value) for filled entries.
(self)
| 94 | return len(self._data) |
| 95 | |
| 96 | def items(self) -> Iterator[tuple[int, T]]: |
| 97 | """Iterate through (index, value) for filled entries.""" |
| 98 | for index in sorted(self._data): |
| 99 | yield index, self._data[index] |
| 100 | |
| 101 | def __contains__(self, index: int) -> bool: |
| 102 | return index in self._data |
no outgoing calls