Wal.records.read.go: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Wal Lines 366-380 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=366&end_line=380 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def records.read.go( remaining: Nat, input: RecordRead, reversed: List<&2, Mut> ) -> Bytes.Cursor & Result<&1, &1, Error, List<&2, Mut>>: match remaining input: case 0n RecordInput{cursor, Fail{error}}: (cursor, Fail{error}) case 0n RecordInput{cursor, Done{mut}}: (cursor, Done{List.reverse(&2, Mut, mut <> reversed)}) case 1n+rest RecordInput{cursor, Fail{error}}: (cursor, Fail{error}) case 1n+rest RecordInput{cursor, Done{mut}}: records.read.go(rest, records.read.wrap(record.read(cursor)), mut <> reversed) Uses (12): 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=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Cursor 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=RecordRead https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&name=record.read https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&name=records.read.wrap