We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Streams are returning results, although they have been consumed.
To Reproduce
stream = Stream.of([1, 2, 3, 4, 5, 6]) print(stream.sum()) # 21 print(stream.filter(lambda x: x % 2 == 0).reduce(lambda x, y: x + y)) # Optional(12)
Expected behavior Line 3 should fail with error: Stream has been closed
The text was updated successfully, but these errors were encountered:
Merge pull request #42 from PickwickSoft/bugfix/#41/stream-not-closin…
710cc68
…g-after-terminal-operation Bugfix/#41/stream not closing after terminal operation
Closed by #42
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Streams are returning results, although they have been consumed.
To Reproduce
Expected behavior
Line 3 should fail with error: Stream has been closed
The text was updated successfully, but these errors were encountered: