[Stdlib] For Collections, the SubSequence of a Subsequence is SubSequence #8888
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of ABI FIXME #99, this gives us some nice consistency that
ensures that slicing a
SubSequence
gives us anotherSubSequence
. Thereare two source-compatibility implications to this change:
expressed in Swift 3. There might be some Collections that don't
satisfy this property, and will break with the Swift 4 compiler
even in Swift 3 compatibility mode. Case in point...
the base slice (e.g.,
LazyCollection<ArraySlice<T>>
) rather than asa slice of the lazy collection (e.g.,
Slice<LazyCollection<Array<T>>
). The former doesn't meet the newrequirements, so change to the latter.