You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 like u and convert(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?
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: