def feeds
bend-lint-rules@0.2.0.0 · performance/list_index_loop.bend:204
import bend-lint-rules@0.2.0.0/performance/list_index_loop.bend as ListIndexLoop
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
204
205def feeds(path: List<&2, Lint.Above>, target: String) -> Bool:
206 match path:
207 case Con{
208 Lint.Above{
209 Lint.Node{
210 Lint.Application{},
211 n,
212 s,
213 Con{Lint.Node{Lint.Reference{t}, rn, rs, rk, rf}, args},
214 f
215 },
216 at
217 },
218 rest
219 }:
220 String.eq(t, target) && U32.is_gt(at, 0)
221 case _:
222 False{}