def pkg.ask
ezx@1.11.0.0 · src/pkg/pkg.bend:1367
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base
1367
1368
1369def pkg.ask(fuel: Nat, +top: String, +entry: String, +eb: String, +tree: Tree, +st: State) -> IO(Pkg):
1370 match fuel:
1371 case 0n:
1372 IO.die(Pkg, 1, "ez: the walk from " ++ entry ++ " asked too many questions")
1373 case 1n+f:
1374 +now = walk(resumed.fuel(tree, st), tree, eb, st)
1375 pkg.next(state.stop(now), top, entry, tree, now,
1376 t => s => pkg.ask(f, top, entry, eb, t, s))