Toml.pair.of: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/toml/toml.bend as Toml Lines 213-227 of ezx@1.11.0.0/src/toml/toml.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/toml/toml.bend&start_line=213&end_line=227 import Base import emerging-eztoml@0.9.0.0/main.bend as E # a pair whose value is written as text: a string or a boolean, as ez writes # them; an integer as its digits. A table, an array or an inline table is not # a pair of the section. def pair.of(+name: String, val: E.Val) -> List<&2, Kv>: match val: case E.VStr{text}: [Kv{name, text}] case E.VSpan{src, nn}: [Kv{name, E.string(E.VSpan{src, nn})}] case E.VBool{bit}: [Kv{name, flag.text(bit)}] case E.VInt{_sign, digits}: [Kv{name, digits}] case _: [] Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-eztoml@0.9.0.0/main.bend&name=Val https://jend.leeeet.dev/definition.txt?path=emerging-eztoml@0.9.0.0/main.bend&name=string https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/toml/toml.bend&name=Kv https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/toml/toml.bend&name=flag.text