def cite

bolt@1.27.0.0 · src/rules/table.bend:226

import bolt@1.27.0.0/src/rules/table.bend as Table
import Base
import bolt@1.27.0.0/src/finding.bend as F

226# the finding for a get or a set
227def cite(+get: Bool, +path: String, +line: U32, +col: U32, +len: U32) -> F.Finding:
228  match get:
229    case True{}:
230      F.Finding{path, line, col, len, "table",
231        "List.get in a recursive def walks the table from its head on every step; keep the table in an Array and use Array.get."}
232    case False{}:
233      F.Finding{path, line, col, len, "table",
234        "List.set in a recursive def copies the list to change one element; keep the table in an Array and use Array.set."}

Uses (4)

Used by (1)