def apply.batch.counted

mylsm-lsm-store@0.6.0.1 · src/ByteWalIo.bend:151

import mylsm-lsm-store@0.6.0.1/src/ByteWalIo.bend as ByteWalIo
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWal

151def apply.batch.counted(
152  table: ByteMemTable.Table,
153  pair: List<&1, ByteWal.Mutation> & Nat
154) -> ByteMemTable.Table:
155  match pair:
156    case (mutations, count):
157      apply.batch.loop(Nat.add(count, 1n), table, mutations)

Uses (8)

Used by (1)