def read.or.keep
import yaml-for-bend@0.1.1.0/core.bend as Coreimport Base
import yaml-for-bend@0.1.1.0/value.bend as V
154# A tag that isn't known is kept with the text, as data: no tag runs code.
155def read.or.keep(hit: Bool, +tag: String, +s: String) -> Result<&2, &2, String, V.Yaml>:
156 match hit:
157 case True{}:
158 read(tag, s)
159 case False{}:
160 Done{V.Tagged{tag, V.Str{s}}}