Initial commit
This commit is contained in:
9
mdb/index_test.go
Normal file
9
mdb/index_test.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package mdb
|
||||
|
||||
func (i Index[T]) Dump(tx *Snapshot) (l []T) {
|
||||
i.Ascend(tx, func(t *T) bool {
|
||||
l = append(l, *t)
|
||||
return true
|
||||
})
|
||||
return l
|
||||
}
|
||||
Reference in New Issue
Block a user