def at.pick
import ezx@1.11.0.0/src/lock/lock.bend as Lockimport Base
import ezx@1.11.0.0/src/toml/toml.bend as T
203# the pairs of a table when it is the one asked for, otherwise the rest's
204def at.pick(hit: Bool, sect: T.Sect, rest: List<&2, T.Kv>) -> List<&2, T.Kv>:
205 match hit:
206 case True{}:
207 T.Sect{_n, ps} = sect
208 ps
209 case False{}:
210 rest