-
Notifications
You must be signed in to change notification settings - Fork 29
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
Import Base.Iterators when IterTools is used #30
Comments
We can probably do this with |
We'll have to be more careful than that. There would be conflicts. But we should just clear up those conflicts I think. |
I think this is a good idea, Then one would only need to look in Itertools, |
Conflicts between Iterators and IterTools were cleared up. We can do this, but we won't be able to export everything (e.g., we can't export |
Can we export those things as |
Are there any news on this? |
It is still desired but noone has gotten round to it. |
@oxinabox what would I have to change? |
Add to the exports:
add to the code:
List of all of them is
Working out which should be prefixed with |
In my opinion we should either rename as few as necessary (thus only changing filter to ifilter) or switching all functions to a prefix i version, including the functions of IterTools. Strategy A: Backwards Compatibility first Strategy B: Consistency first |
If possible it would be nice if Base.Iterators-functions were imported automatically for cleaner code. Since lines like
collect(Iterators.flatten(chain(1:9,reverse(11:20),10)
would look cleaner if it was justflatten
rather thanIterators.flatten
.When people import IterTools it seems to be clear that they intend to use them (alot) or like to go for functional programming and thus simplifying it sounds like a good idea to me.
The text was updated successfully, but these errors were encountered: