MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __iter__

Method __iter__

data_structures/hashing/hash_map.py:314–315  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

312 return self._len
313
314 def __iter__(self) -> Iterator[KEY]:
315 yield from (item.key for item in self._buckets if item)
316
317 def __repr__(self) -> str:
318 val_string = ", ".join(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected