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
It's sometimes helpful to get a partition of BitVec specified by a given range. Specifically, the following API might be useful:
/// Return a new `BitVec` at a given range. This operation is taking/// O(range) time.pubfnget_range(&self,range:Range<usize>) -> Self;
This function will essentially copy range/block_size blocks with some constant time adjustments.
It's also helpful to have its iterator equivalent:
pubfniter(&self,range:Range<usize>) -> Iter<B>{self.ensure_invariant();Iter{bit_vec:self, range }}
Those two features will be useful in applications like MPC. It would be helpful if similar features are already implemented. Otherwise I can submit a PR. Thanks!
The text was updated successfully, but these errors were encountered:
It's sometimes helpful to get a partition of
BitVec
specified by a given range. Specifically, the following API might be useful:This function will essentially copy
range/block_size
blocks with some constant time adjustments.It's also helpful to have its iterator equivalent:
Those two features will be useful in applications like MPC. It would be helpful if similar features are already implemented. Otherwise I can submit a PR. Thanks!
The text was updated successfully, but these errors were encountered: