diff options
author | crupest <crupest@outlook.com> | 2024-11-11 01:12:29 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-01-18 17:38:07 +0800 |
commit | f8a23e8e20c416dabd5578a1f121b6e602c959fa (patch) | |
tree | ae0e509d11b974b6fda8fbef985f1e538913e6fd /tools/cru-py/cru/list.py | |
parent | a7bbf582b695bb25d1e01152a9e037ad3b34e954 (diff) | |
download | crupest-f8a23e8e20c416dabd5578a1f121b6e602c959fa.tar.gz crupest-f8a23e8e20c416dabd5578a1f121b6e602c959fa.tar.bz2 crupest-f8a23e8e20c416dabd5578a1f121b6e602c959fa.zip |
HALF WORK: 2024.1.18
Diffstat (limited to 'tools/cru-py/cru/list.py')
-rw-r--r-- | tools/cru-py/cru/list.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cru-py/cru/list.py b/tools/cru-py/cru/list.py index 42caab3..e329ae2 100644 --- a/tools/cru-py/cru/list.py +++ b/tools/cru-py/cru/list.py @@ -147,3 +147,6 @@ class CruUniqueKeyList(Generic[_T, _K]): def __len__(self) -> int: return len(self._list) + + def cru_iter(self) -> CruIterator[_T]: + return CruIterator(self._list) |