mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
- Don’t allow `skip(by:)` to skip fewer than the requested number of items, unless it hits the end of the sequence or an error. Remove its Boolean return value. - Introduce a variant of `skip(by:)` that doesn’t take an inout argument, losing the ability to report which item triggered a throw. This is just a standard algorithm; the protocol continues to require proper reporting of partial success. - Use the stdlib’s `withTemporaryAllocation` method where possible to create temporary buffers.