Server.s_read: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/server.bend as Server Lines 41-46 of cswap-bend-cli@0.1.0.0/server.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/server.bend&start_line=41&end_line=46 import Base import cswap-bend-cli@0.1.0.0/fs.bend as Fs def s_read(res: Fs.Res(String), f: File, buf: String) -> SP: match res: case Fail{e}: SDone{f} case Done{+c}: s_chunk(Bool.not(String.is_empty(c)), f, buf, c) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fs.bend&name=Res https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/server.bend&name=SP https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/server.bend&name=s_chunk