Sim.pairs_of_flat: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/sim.bend as Sim Lines 254-262 of bend-prot@0.1.0.0/sim.bend: https://jend.leeeet.dev/read.txt?path=bend-prot@0.1.0.0/sim.bend&start_line=254&end_line=262 import Base # Flat bonds back to pairs for the pair-list energies. def pairs_of_flat(bs: List<&2, U32>) -> List<&1, U32 & U32>: match bs: case Nil{}: Nil{} case x <> Nil{}: Nil{} case x <> y <> t: (x, y) <> pairs_of_flat(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