Decode.header.try.pick: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/decode.bend as Decode Lines 123-128 of bend-toon-codec@0.1.0.0/src/decode.bend: https://jend.leeeet.dev/read.txt?path=bend-toon-codec@0.1.0.0/src/decode.bend&start_line=123&end_line=128 import Base import bend-toon-codec@0.1.0.0/src/hdr.bend as H def header.try.pick(+root: Bool, +text: String) -> Result<&2, &2, String, H.Hdr>: match root: case True{}: H.parse(text) case False{}: Fail{"not a root header"} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=bend-toon-codec@0.1.0.0/src/hdr.bend&name=Hdr https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/hdr.bend&name=parse