Why this matters
Reduces complexity from O(n) to O(1) average and simplifies code.
Prefer direct Map access over linear scans when looking up by key.
Reduces complexity from O(n) to O(1) average and simplifies code.
Side-by-side examples engineers can pattern-match during review.
var v: Int? = null
for ((k, value) in map) if (k == id) v = valueval v = map[id]list.find { it.first == k }?.secondmap[k]From the same buckets as this rule.
All static JS/CSS/font/image files MUST use content-hashed filenames (e.g., app.9c1a7b.js) and be served with "Cache-Control: public, max-age=31536000, immutable". HTML and other non-fingerprinted documents MUST be served with "Cache-Control: no-cache" (or equivalent) to enable conditional revalidation.