Skip to content

mid [terminology]

Terminology

Usage

  • Use for the midpoint of a range or a partition position.
  • It may be an index or a value, depending on whether the surrounding bounds are positional or value-based.
  • Prefer middle only when describing a broader conceptual region rather than a temporary midpoint.
mid = (l + r) // 2