from typing import List


def _replace_with(items: List[int], value: int) -> List[int]:
  """Replaces all values in items with value (in-place)."""
  length = len(items)
  del items[:]
  items.extend(length * [value])
  return items