def count.go
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTableimport Base
62# Counts each owned mutation in a byte table.
63def count.go(entries: List<&1, Entry>, total: Nat) -> Nat:
64 match entries:
65 case Nil{}:
66 total
67 case Con{_, tail}:
68 count.go(tail, Nat.add(total, 1n))