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
Currently, iter_ones and iter_zeros always begin from the first position (front is set to zero) and there is no easy way to begin iterating at a certain position.
It would be helpful if we could call iter_ones_from(start_index) in order to start iterating the ones from the specified position (note: position in the bitvec, not within the ones). Same for iter_zeros_from of course.
This is somewhat achievable using slices, but requires book-keeping in order to recalculate the absolute indexes from the slice-relative indexes.
If this sounds like a good addition, I'd be glad to try and send a PR.
The text was updated successfully, but these errors were encountered:
Currently,
iter_ones
anditer_zeros
always begin from the first position (front
is set to zero) and there is no easy way to begin iterating at a certain position.It would be helpful if we could call
iter_ones_from(start_index)
in order to start iterating the ones from the specified position (note: position in the bitvec, not within the ones). Same foriter_zeros_from
of course.This is somewhat achievable using slices, but requires book-keeping in order to recalculate the absolute indexes from the slice-relative indexes.
If this sounds like a good addition, I'd be glad to try and send a PR.
The text was updated successfully, but these errors were encountered: