EmergingEztoml.rows.seal.go: def of emerging-eztoml@0.9.0.0 Import: import emerging-eztoml@0.9.0.0/main.bend as EmergingEztoml Lines 4600-4623 of emerging-eztoml@0.9.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=emerging-eztoml@0.9.0.0/main.bend&start_line=4600&end_line=4623 import Base # put every table back in insertion order. one pass, no append along the way def rows.seal.go(vs: List<&2, Val>, rev: Bool, acc: List<&2, Val>) -> List<&2, Val>: match vs: case []: rows.seal.fin(rev, acc) case VPair{name, VHead{path, rows}} <> t: rows.seal.go(t, rev, VPair{name, VHead{path, rows.seal.go(rows, True{}, [])}} <> acc) case VPair{name, VAots{path, elems}} <> t: rows.seal.go(t, rev, VPair{name, VAots{path, rows.seal.go(elems, True{}, [])}} <> acc) case VPair{name, VInl{rows}} <> t: rows.seal.go(t, rev, VPair{name, VInl{rows.seal.go(rows, True{}, [])}} <> acc) case VPair{name, VArr{items}} <> t: rows.seal.go(t, rev, VPair{name, VArr{rows.seal.go(items, False{}, [])}} <> acc) case VAot{path, rows} <> t: rows.seal.go(t, rev, VAot{path, rows.seal.go(rows, True{}, [])} <> acc) case VAots{path, elems} <> t: rows.seal.go(t, rev, VAots{path, rows.seal.go(elems, True{}, [])} <> acc) case VInl{rows} <> t: rows.seal.go(t, rev, VInl{rows.seal.go(rows, True{}, [])} <> acc) case VArr{items} <> t: rows.seal.go(t, rev, VArr{rows.seal.go(items, False{}, [])} <> acc) case h <> t: rows.seal.go(t, rev, h <> acc) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=emerging-eztoml@0.9.0.0/main.bend&name=Val https://jend.leeeet.dev/definition.txt?path=emerging-eztoml@0.9.0.0/main.bend&name=rows.seal.fin