def pairs.of
import ezx@1.11.0.0/src/toml/toml.bend as Tomlimport Base
import emerging-eztoml@0.9.0.0/main.bend as E
229# the pairs among a table's rows, in order
230def pairs.of(rows: List<&2, E.Val>) -> List<&2, Kv>:
231 match rows:
232 case []:
233 []
234 case E.VPair{name, val} <> tl:
235 List.append(&2, Kv, pair.of(name, val), pairs.of(tl))
236 case _hd <> tl:
237 pairs.of(tl)