Wal.records.step: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Wal Lines 190-203 of mylsm-lsm-store@0.6.0.1/src/Wal.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&start_line=190&end_line=203 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def records.step( rest: List<&2, Mut>, current: Result<&1, &1, Error, Bytes.Bytes>, acc: List<&1, Bytes.Bytes> ) -> Result<&1, &1, Error, List<&1, Bytes.Bytes>>: match rest current: case Nil{} Fail{error}: Fail{error} case Nil{} Done{bytes}: Done{List.reverse(&1, Bytes.Bytes, bytes <> acc)} case Con{_mut, _tail} Fail{error}: Fail{error} case Con{mut, tail} Done{bytes}: records.step(tail, record.encode(mut), bytes <> acc) 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=Result https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&name=Mut https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&name=record.encode