Check the DrainableContainer requirements and extensions against
Array's removeSubrange(_:), for every subrange: that a subrange drain
hands out the removed items in order, in spans no longer than maxCount,
then only empty spans, with an accurate count; that it removes the
whole subrange whether it is finalized or dropped partway, and
finalize() returns the index following the removed items; that
consumeSubrange(_:consumingWith:) passes the removed items to its
consumer and discards those it leaves; the items and indices returned
by remove(at:), removeFirst() and the index-returning removals,
including the RangeExpression2 and UnboundedRange overloads; and that
no item is leaked or destroyed but the removed items not handed out.
For a BidirectionalContainer, consumeLast(_:), removeLast(),
removeLast(_:) and popLast() are checked too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>