def plain
yaml-for-bend@0.1.1.0 · yaml11.bend:197
import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11
import Base
import yaml-for-bend@0.1.1.0/value.bend as V
import yaml-for-bend@0.1.1.0/core.bend as C
197
198def plain(+s: String) -> V.Yaml:
199 when(V.Yaml, C.is_null(s), u => V.Null{},
200 u => when(V.Yaml, is_true(s), u => V.Boolean{True{}},
201 u => when(V.Yaml, is_false(s), u => V.Boolean{False{}},
202 u => or.int(int.of(s), u => or.float(float.of(s),
203 u => when(V.Yaml, is_timestamp(s), u => V.Tagged{timestamp(), V.Str{s}}, u => V.Str{s}))))))