mutating func removeFirst()

in Sources/_CollectionsTestSupport/MinimalTypes/_MinimalCollectionCore.swift [293:305]


  mutating func removeFirst(_ n: Int) {
    expectTrue(
      n >= 0,
      "Can't remove a negative number of elements",
      trapping: true)
    expectTrue(
      n <= count,
      "Can't remove more elements than there are in the collection",
      trapping: true)
    ensureUniqueState()
    state.remove(count: n, at: 0)
    elements.removeFirst(n)
  }