Pdb.collect_extend: def of bend-prot@0.1.0.0 Import: import bend-prot@0.1.0.0/pdb.bend as Pdb Lines 331-343 of bend-prot@0.1.0.0/pdb.bend: https://jend.leeeet.dev/read.txt?path=bend-prot@0.1.0.0/pdb.bend&start_line=331&end_line=343 import Base import bend-prot@0.1.0.0/protein.bend as P # Collect parsed atoms plus the skipped-line count. Tail-recursive: the # extend step builds both outcomes as data (no match, no cycle) and the # single self-call runs on the tail. def collect_extend(m: Maybe<&1, U32 & Nat & P.Atom>, st: List<&1, U32 & Nat & P.Atom> & Nat) -> List<&1, U32 & Nat & P.Atom> & Nat: match m: case None{}: match st: case (as, n): (as, 1n+n) case Some{x}: match st: case (as, n): (x <> as, n) 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=Maybe 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=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=Atom