Skip to content

Commit

Permalink
update arr.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Feb 7, 2025
1 parent 6f1e787 commit 3793f7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iterpy/arr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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 #
Expand Down

0 comments on commit 3793f7e

Please sign in to comment.