def dirs.of

bolt@1.27.0.0 · src/lint/plan.bend:260

import bolt@1.27.0.0/src/lint/plan.bend as Plan
import Base
import bolt@1.27.0.0/src/config.bend as Config

260# the directory of each path
261def dirs.of(ps: List<&2, String>) -> List<&2, String>:
262  match ps:
263    case Nil{}:
264      Nil{}
265    case Con{p, rest}:
266      Config.dir_of(p) <> dirs.of(rest)

Uses (3)

Used by (1)