def deps.first

bolt@1.27.0.0 · src/rules/imports.bend:134

import bolt@1.27.0.0/src/rules/imports.bend as Imports
import Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy

134# `deps.spec`, stopping at the first file of that path
135def deps.first(es: List<&2, Edge>, +pp: String) -> List<&2, String>:
136  match es:
137    case Nil{}:
138      Nil{}
139    case Con{Edge{ep, ds}, rest}:
140      Lazy.stop(List<&2, String>, String.eq(ep, pp), ds, _u => deps.first(rest, pp))

Uses (5)

Used by (1)