Toml.sect.put: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/toml/toml.bend as Toml Lines 273-283 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=273&end_line=283 import Base # a table's section, when it holds a pair or no table. A table that holds # only tables is the parent a dotted header implies, which ez never writes a # pair into; old ledgers and locks name no such table, so it is no section. # (segs arrive innermost first, as `tables` builds them; the header reads # them outermost first) def sect.put(skip: Bool, +ps: List<&2, Kv>, +segs: List<&2, String>) -> List<&2, Sect>: match skip: case True{}: [] case False{}: [Sect{head.of(List.reverse(&2, String, segs)), ps}] Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.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=Sect https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/toml/toml.bend&name=head.of