def at3

ezx@1.11.0.0 · src/lock/lock.bend:212

import ezx@1.11.0.0/src/lock/lock.bend as Lock
import Base
import ezx@1.11.0.0/src/toml/toml.bend as T

212# the pairs of the table at this three segment path, or none
213def at3(ss: List<&2, T.Sect>, +first: String, +second: String, +third: String) -> List<&2, T.Kv>:
214  match ss:
215    case []:
216      []
217    case +h <> t:
218      at.pick(is3(segs(h), first, second, third), h, at3(t, first, second, third))

Uses (7)

Used by (1)