def finish_bonds
import bend-prot@0.1.0.0/pdb.bend as Pdbimport Base
637def finish_bonds(fr: File & Result<&1, &1, U32 & String, String>) -> IO(List<&1, U32 & U32>):
638 match fr:
639 case (fh2, res):
640 do IO<List<&1, U32 & U32>>:
641 text : String <- IO.pass(String, res)
642 File.close(fh2)
643 return conect_pairs(conect_lines(tlines(text)))