AppendInLoop.arguments: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/append_in_loop.bend as AppendInLoop Lines 195-213 of bend-lint-rules@0.2.0.0/performance/append_in_loop.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/append_in_loop.bend&start_line=195&end_line=213 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint import bend-lint-api@0.2.0.0/shared/lists.bend as Lists # The findings about the arguments `args` of a call of the loop `name`, after the call's nodes `before` (last first). def arguments( args: List<&2, Lint.Node>, +loop: Loop, +name: String, +before: List<&2, Lint.Node>, out: List<&2, Lint.Finding> ) -> List<&2, Lint.Finding>: match args: case Nil{}: List.reverse(&2, Lint.Finding, out) case Con{+arg, +rest}: arguments( rest, loop, name, arg <> before, Lists.onto(&2, Lint.Finding, argument(arg, loop, name, before, rest), out) ) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Finding https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/lists.bend&name=onto https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/append_in_loop.bend&name=Loop https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/append_in_loop.bend&name=argument