Compose.scalar.value: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/compose.bend as Compose Lines 266-279 of yaml-for-bend@0.1.1.0/compose.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/compose.bend&start_line=266&end_line=279 import Base import yaml-for-bend@0.1.1.0/parse.bend as P import yaml-for-bend@0.1.1.0/value.bend as V import yaml-for-bend@0.1.1.0/core.bend as C import yaml-for-bend@0.1.1.0/yaml11.bend as Y11 def scalar.value(s: Schema, t: P.Tag, +text: String, +plain: Bool) -> Result<&2, &2, String, V.Yaml>: match s: case Core{}: match t: case P.NoTag{}: Done{when(V.Yaml, plain, u => C.plain(text), u => V.Str{text})} case P.Tag{n}: C.tagged(n, text) case Yaml11{}: match t: case P.NoTag{}: Done{when(V.Yaml, plain, u => Y11.plain(text), u => V.Str{text})} case P.Tag{n}: Y11.tagged(n, text) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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/compose.bend&name=Schema https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/compose.bend&name=when https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=plain https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/core.bend&name=tagged https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/parse.bend&name=Tag 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=plain https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/yaml11.bend&name=tagged