-
Notifications
You must be signed in to change notification settings - Fork 18
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
Iterator interface on IntervalSet #222
Comments
@ahjulstad maybe submitting a PR will get the dev's attention. i'd find such an iterator very useful! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Any reason not to implement the iterator interface on the intervalset?
I wanted to do things like
sum( (span(s) for s in u) )
but that doesn't work, I need to explicitly convert like this using
sum( (span(s) for s in convert(Array, u)) )
As the
convert
function is intended to be called implicitly; it should still be the same data, it feels likeu
andconvert(Array, u)
should be very similar, but it doesn't.The following three lines is all the is needed. Does it make sense to add?
The text was updated successfully, but these errors were encountered: