mutating func _update()

in Sources/CollectionsBenchmark/Utilities/_SimpleOrderedSet.swift [127:139]


  mutating func _update(
    with item: Element,
    at index: Int
  ) -> Element {
    let old = _hashTable.update(with: _Item(item, at: index))
    precondition(old!.value == item)
    precondition(old!.index == index)

    let old2 = _elements[index]
    precondition(old2 == item)
    _elements[index] = item
    return old2
  }