Arrays work well with reference counting, because an operation that
If you reassign the variable, e.g nums = append(nums, 16), that’s a different story can of worms entirely. ↩︎
,推荐阅读WPS下载最新地址获取更多信息
to 1-allocation code. Still better than having append do all the
swap(&arr[i], &arr[largest]);