Impl.read_line.got: def of bend-stdio-pipes@0.2.0.0 Import: import bend-stdio-pipes@0.2.0.0/impl.bend as Impl Lines 73-83 of bend-stdio-pipes@0.2.0.0/impl.bend: https://jend.leeeet.dev/read.txt?path=bend-stdio-pipes@0.2.0.0/impl.bend&start_line=73&end_line=83 import Base def read_line.got( got: File & Result<&1, &1, U32 & String, String> ) -> IO(File & Result<&1, &1, U32 & String, Maybe>): match got: case (file, Fail{error}): IO.pure(File & Result<&1, &1, U32 & String, Maybe>, (file, Fail{error})) case (file, Done{SNil{}}): IO.pure(File & Result<&1, &1, U32 & String, Maybe>, (file, Done{None{}})) case (file, Done{SCon{h, t}}): +piece: String = SCon{h, t} read_line.if(file, String.ends_with(piece, "\n"), piece) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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=String.ends_with https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-stdio-pipes@0.2.0.0/impl.bend&name=read_line.if