StatsCodec.entry.step: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend as StatsCodec Lines 83-95 of mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend&start_line=83&end_line=95 import Base def entry.step( entries: Nat, scalar: U32, is_digit: Bool, seen: Bool ) -> State: match is_digit: case True{}: EntryDigits{Nat.add(Nat.mul(entries, 10n), digit.value(scalar)), True{}} case False{}: match seen: case False{}: Invalid{} case True{}: separator(EntryDigits{entries, True{}}, True{}, scalar) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=Nat.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend&name=State https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend&name=digit.value https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/StatsCodec.bend&name=separator