You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stream/stream.py
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,10 @@ def randint(lower, upper):
115
115
def__init__(self, iterable):
116
116
self.__iterable=iterable
117
117
118
+
defparallel(self):
119
+
from .parallelstreamimportParallelStream
120
+
returnParallelStream(self.__iterable)
121
+
118
122
deffilter(self, predicate):
119
123
'''
120
124
Returns a stream consisting of the elements of this stream, additionally performing the provided action on each element as elements are consumed from the resulting stream.
0 commit comments