Toml.value: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/toml/toml.bend as Toml Lines 37-44 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=37&end_line=44 import Base # the value written for a key in a table, or "" when it is absent. The scan # recurses first and picks after, so no recursive call hides inside a branch. def value(pairs: List<&2, Kv>, +key: String) -> String: match pairs: case []: "" case hd <> tl: value.at(hd, value(tl, key), key) Uses (4): 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=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=value.at