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 | f4c3bd4a2eae6861a6b6c053ab62b6538b64a1ff (patch) | |
tree | b1b7bced8537f448e31d686e88b9b5c6a7c2f59a /tools/cru-py/cru/_iter.py | |
parent | 9c2ef5c38ed57ca5fbd5d6ffe41f802001810abb (diff) | |
download | crupest-f4c3bd4a2eae6861a6b6c053ab62b6538b64a1ff.tar.gz crupest-f4c3bd4a2eae6861a6b6c053ab62b6538b64a1ff.tar.bz2 crupest-f4c3bd4a2eae6861a6b6c053ab62b6538b64a1ff.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]: |