diff --git a/iterpy/arr.py b/iterpy/arr.py index 0729f2b..e9d44a1 100644 --- a/iterpy/arr.py +++ b/iterpy/arr.py @@ -3,11 +3,11 @@ from itertools import islice from typing import TYPE_CHECKING, Generic, Sequence, SupportsIndex, TypeVar, overload -from iterpy.iter import Iter - if TYPE_CHECKING: from collections.abc import Callable, Iterable, Iterator + from iterpy.iter import Iter + T = TypeVar("T") S = TypeVar("S") @@ -132,7 +132,7 @@ def zip(self, other: Arr[S]) -> Arr[tuple[T, S]]: return Arr(zip(self, other)) def chain(self, other: Arr[T]) -> Arr[T]: - return self.lazy().chain(Iter(other)).collect() + return self.lazy().chain(other.lazy()).collect() ############################################################ # Auto-generated overloads for flatten #