def step.pop

ezx@1.11.0.0 · src/pkg/pkg.bend:999

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base

999# the next file of the queue visited, or the walk as it is when the queue is
1000# empty
1001def step.pop(
1002  +tree: Tree,
1003  eb: String,
1004  +seen: List<&2, String>,
1005  out: List<&2, Hit>,
1006  stop: Stop,
1007  queue: List<&2, Task>
1008) -> State:
1009  match queue:
1010    case []:
1011      State{seen, out, stop, []}
1012    case Task{+file, ns} <> t:
1013      visit.go(seen.has(seen, file), tree, file, ns, eb, seen, out, t)

Uses (9)

Used by (1)