Frame.take: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/frame.bend as Frame Lines 42-49 of cswap-bend-cli@0.1.0.0/frame.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/frame.bend&start_line=42&end_line=49 import Base # The first message of `buf` (json: a line; block: up to a blank line) and the # rest, none while the message is incomplete. def take(block: Bool, +buf: String) -> Maybe<&2, Cut>: match block: case True{}: cut.at(blank.find(buf, 0n, True{}), buf) case False{}: cut.at(nl.find(buf, 0n), buf) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/frame.bend&name=Cut https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/frame.bend&name=blank.find https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/frame.bend&name=cut.at https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/frame.bend&name=nl.find