Bonded.flatten_bonds: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/bonded.bend as Bonded Lines 124-130 of bend-prot@0.1.0.0/bonded.bend: https://jend.leeeet.dev/read.txt?path=bend-prot@0.1.0.0/bonded.bend&start_line=124&end_line=130 import Base # Pair bonds -> flat [a, b, ..] so tests can re-scan (Data reuses). def flatten_bonds(bs: List<&1, U32 & U32>) -> List<&2, U32>: match bs: case Nil{}: Nil{} case (x, y) <> t: x <> y <> flatten_bonds(t) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=Base/base.bend&name=U32