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
prod([i for j = 1:10 for i in 1:10 if i > 10]) # result = 1
but
prod([i for i in 1:10 if i > 10 for j = 1:10])
ERROR: ArgumentError: argument to Flatten must contain at least one iterator
Something seems wrong here...
Related: https://discourse.julialang.org/t/can-i-type-assert-the-eltype-of-an-iterator/4936
The text was updated successfully, but these errors were encountered:
An interesting case of #18852. Flatten is able to accept a single empty iterator, but not zero iterators.
Flatten
Sorry, something went wrong.
Dup of #18852.
No branches or pull requests
but
Something seems wrong here...
Related: https://discourse.julialang.org/t/can-i-type-assert-the-eltype-of-an-iterator/4936
The text was updated successfully, but these errors were encountered: