-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
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
Support generators #3
Comments
Very interesting, we hadn’t considered non-terminating generators. Thanks for raising this issue, we’ll take a look and offer a solution. |
Support for generators (including non-terminating ones) has been added in the Edit: Please note that in the initial alpha release, only Take a look and let us know what you think! |
Operators like
filter
andmap
take aniterable
but return anarray
. All values of theiterable
have to be iterated during evaluation. The following example will run out of memory becauseints
is an infiniteiterable
:The same works fine if you use
iterables
as intermediate results like nikic/iter doesThe text was updated successfully, but these errors were encountered: