File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 11package roaring
22
3+ // Values returns an iterator that yields the elements of the bitmap in
4+ // increasing order. Starting with Go 1.23, users can use a for loop to iterate
5+ // over it.
36func Values (b * Bitmap ) func (func (uint32 ) bool ) {
47 return func (yield func (uint32 ) bool ) {
58 it := b .Iterator ()
@@ -11,6 +14,9 @@ func Values(b *Bitmap) func(func(uint32) bool) {
1114 }
1215}
1316
17+ // Backward returns an iterator that yields the elements of the bitmap in
18+ // decreasing order. Starting with Go 1.23, users can use a for loop to iterate
19+ // over it.
1420func Backward (b * Bitmap ) func (func (uint32 ) bool ) {
1521 return func (yield func (uint32 ) bool ) {
1622 it := b .ReverseIterator ()
Original file line number Diff line number Diff line change 11package roaring64
22
3+ // Values returns an iterator that yields the elements of the bitmap in
4+ // increasing order. Starting with Go 1.23, users can use a for loop to iterate
5+ // over it.
36func Values (b * Bitmap ) func (func (uint64 ) bool ) {
47 return func (yield func (uint64 ) bool ) {
58 it := b .Iterator ()
@@ -11,6 +14,9 @@ func Values(b *Bitmap) func(func(uint64) bool) {
1114 }
1215}
1316
17+ // Backward returns an iterator that yields the elements of the bitmap in
18+ // decreasing order. Starting with Go 1.23, users can use a for loop to iterate
19+ // over it.
1420func Backward (b * Bitmap ) func (func (uint64 ) bool ) {
1521 return func (yield func (uint64 ) bool ) {
1622 it := b .ReverseIterator ()
You can’t perform that action at this time.
0 commit comments