def walk.all
import bend-lint-pack@0.1.1.0/complexity/cognitive.bend as Cognitiveimport Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint
32# Each of `cs` the same way.
33def walk.all(cs: List<&2, Lint.Node>, +depth: U32, +chain: Bool, total: U32) -> IO(U32):
34 match cs:
35 case Nil{}:
36 IO.pure(U32, total)
37 case Con{c, rest}:
38 IO.bind(U32, U32, walk(c, depth, chain, total), t2 => walk.all(rest, depth, chain, t2))