MigrateIo.wal.batches.measure.go: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/transfer/MigrateIo.bend as MigrateIo Lines 679-687 of mylsm-lsm-store@0.6.0.1/src/transfer/MigrateIo.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/MigrateIo.bend&start_line=679&end_line=687 import Base import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Wal def wal.batches.measure.go( batches: List<&2, Wal.Batch>, reversed: List<&2, Wal.Batch>, count: Nat ) -> List<&2, Wal.Batch> & Nat: match batches: case Nil{}: (List.reverse(&2, Wal.Batch, reversed), count) case Con{batch, tail}: wal.batches.measure.go(tail, Con{batch, reversed}, Nat.add(count, 1n)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&name=Batch