def walk.spent

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

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

1051# the fuel ran out: a walk that is over stays as it is, and one with files
1052# still queued is spent, so it is refused rather than hashed short
1053def walk.spent(done: Bool, st: State) -> State:
1054  match done:
1055    case True{}:
1056      st
1057    case False{}:
1058      State{seen, out, _stop, queue} = st
1059      State{seen, out, Spent{}, queue}

Uses (3)

Used by (1)