| 17 | |
| 18 | |
| 19 | class Counter: |
| 20 | |
| 21 | def __init__(self, start: int = 0) -> None: |
| 22 | self.counter = start |
| 23 | |
| 24 | def __next__(self) -> int: |
| 25 | i = self.counter |
| 26 | self.counter += 1 |
| 27 | return i |
| 28 | |
| 29 | def reset(self) -> None: |
| 30 | self.counter = 0 |
| 31 | |
| 32 | |
| 33 | def is_hip() -> bool: |