def count.go

mylsm-lsm-store@0.6.0.1 · src/ByteMemTable.bend:62

import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
import 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))

Uses (4)

Used by (1)