Emit.scalar.text: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/emit.bend as Emit Lines 176-194 of yaml-for-bend@0.1.1.0/emit.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/emit.bend&start_line=176&end_line=194 import Base import yaml-for-bend@0.1.1.0/value.bend as V # A scalar's text, or an empty collection's. def scalar.text(v: V.Yaml) -> String: match v: case V.Null{}: "null" case V.Boolean{on}: Bool.pick(String, on, "true", "false") case V.Int{t}: t case V.Float{t}: t case V.Str{t}: str.text(t) case V.Seq{xs}: "[]" case V.Mapping{es}: "{}" case V.Tagged{t, x}: "" Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick 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/emit.bend&name=str.text https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/value.bend&name=Yaml