def plain
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
105# An untagged plain scalar.
106def plain(+s: String) -> V.Yaml:
107 when(V.Yaml, is_null(s), u => V.Null{},
108 u => when(V.Yaml, is_true(s), u => V.Boolean{True{}},
109 u => when(V.Yaml, is_false(s), u => V.Boolean{False{}},
110 u => or.int(int.of(s), s, u => or.float(float.of(s), u => V.Str{s})))))