diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-20 17:52:32 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-20 18:02:19 +0800 |
commit | c8be4e6d6e3b46c9c012fd10794fd8fe3f45dc3e (patch) | |
tree | 2ccf8cb2027ba79bcfe777a7a10871eca23d507d /tools/cru-py/cru/_iter.py | |
parent | a7359300539f6a4be04b871de04fd690e54addb8 (diff) | |
download | crupest-c8be4e6d6e3b46c9c012fd10794fd8fe3f45dc3e.tar.gz crupest-c8be4e6d6e3b46c9c012fd10794fd8fe3f45dc3e.tar.bz2 crupest-c8be4e6d6e3b46c9c012fd10794fd8fe3f45dc3e.zip |
feat(cru-py): use new template format.
Diffstat (limited to 'tools/cru-py/cru/_iter.py')
-rw-r--r-- | tools/cru-py/cru/_iter.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cru-py/cru/_iter.py b/tools/cru-py/cru/_iter.py index 8f58561..f9683ca 100644 --- a/tools/cru-py/cru/_iter.py +++ b/tools/cru-py/cru/_iter.py @@ -445,6 +445,9 @@ class CruIterator(Generic[_T]): return result + def join_str(self: CruIterator[str], separator: str) -> str: + return separator.join(self) + class CruIterMixin(Generic[_T]): def cru_iter(self: Iterable[_T]) -> CruIterator[_T]: |