def climb
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
1122# the deepest climb any file of the package makes
1123def climb(fs: List<&2, Hit>) -> Nat:
1124 match fs:
1125 case []:
1126 0n
1127 case h <> t:
1128 Nat.max(hit.ups(h), climb(t))