Skip to content

Commit 58e366a

Browse files
committed
add starmap.reduce
1 parent 52d4000 commit 58e366a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graalpython/lib-graalpython/itertools.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ def __next__(self):
155155
obj = next(self.iterable)
156156
return self.fun(*obj)
157157

158+
@__graalpython__.builtin_method
159+
def __reduce__(self):
160+
return type(self), (self.fun, self.iterable)
161+
158162

159163
class islice(object):
160164
@__graalpython__.builtin_method

0 commit comments

Comments
 (0)