Pdb.finish_read: def of bend-prot@0.1.0.0
Import: import bend-prot@0.1.0.0/pdb.bend as Pdb
Lines 471-477 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=471&end_line=477
import Base
import bend-prot@0.1.0.0/protein.bend as P
def finish_read(fr: File & Result<&1, &1, U32 & String, String>) -> IO(P.Complex & Nat):
match fr:
case (fh2, res):
do IO
:
text : String <- IO.pass(String, res)
File.close(fh2)
return parse_pdb(text)
Uses (15):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File.close
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pass
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure
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=Result
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit
https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/pdb.bend&name=parse_pdb
https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=Complex