jldb/mdb/index_test.go
2023-10-13 11:43:27 +02:00

10 lines
142 B
Go

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
}