Yaml11.plain: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11 Lines 197-203 of yaml-for-bend@0.1.1.0/yaml11.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&start_line=197&end_line=203 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 # An untagged plain scalar. def plain(+s: String) -> V.Yaml: when(V.Yaml, C.is_null(s), u => V.Null{}, u => when(V.Yaml, is_true(s), u => V.Boolean{True{}}, u => when(V.Yaml, is_false(s), u => V.Boolean{False{}}, u => or.int(int.of(s), u => or.float(float.of(s), u => when(V.Yaml, is_timestamp(s), u => V.Tagged{timestamp(), V.Str{s}}, u => V.Str{s})))))) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=is_null https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/value.bend&name=Yaml https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=float.of https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=int.of https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=is_false https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=is_timestamp https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=is_true https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=or.float https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=or.int https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=timestamp https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=when