def write_batch.validated
import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as ByteDurableDbimport Base
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWal
1858def write_batch.validated(
1859 handle: Handle,
1860 mutations: List<&1, ByteWal.Mutation>,
1861 count: Nat
1862) -> IO(Handle & Result<&1, &1, Error, Unit>):
1863 batch.prepare.start(handle, Nat.add(Nat.mul(count, 2n), 1n), mutations)