Skip to content

idx [terminology]

Terminology

Usage

  • Use for a scalar index when naming the fact that it is an index matters.
  • Prefer idx over i when the variable persists beyond a small loop or appears in a compound name.
  • Do not use singular idx for a mapping of values to indices.
repeat_idx = seen[rem]
parts.insert(repeat_idx, "(")