Pkg.walk.fuel: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg Lines 1270-1279 of ezx@1.11.0.0/src/pkg/pkg.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&start_line=1270&end_line=1279 import Base # fuel enough for a walk over these files: one step for the entry and one for # every import it can queue, and every import is a line of some file. A # function of the files rather than a number, so no checkout is too big for # it and a proof about files it does not know leaves it unevaluated. def walk.fuel(fs: List<&2, Source>) -> Nat: match fs: case []: 1n case Source{_at, text} <> t: (List.length(&2, String, String.lines(text)) + walk.fuel(t) : Nat) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.lines https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Source