def read.or.keep
import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11import Base
import yaml-for-bend@0.1.1.0/value.bend as V
242# A tag that isn't known is kept with the text, as data: no tag runs code.
243def read.or.keep(hit: Bool, +tag: String, +s: String) -> Result<&2, &2, String, V.Yaml>:
244 match hit:
245 case True{}:
246 read(tag, s)
247 case False{}:
248 Done{V.Tagged{tag, V.Str{s}}}