def pairs.at

ezx@1.11.0.0 · src/ws/workspace.bend:521

import ezx@1.11.0.0/src/ws/workspace.bend as Workspace
import Base
import ezx@1.11.0.0/src/toml/toml.bend as T

521# this section's pairs when its name matches, otherwise the rest's
522def pairs.at(sect: T.Sect, rest: List<&2, T.Kv>, +name: String) -> List<&2, T.Kv>:
523  T.Sect{nn, ps} = sect
524  Bool.pick(List<&2, T.Kv>, String.eq(nn, name), ps, rest)

Uses (6)

Used by (1)