Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make suffix() zero-based #25

Merged
merged 2 commits into from
Sep 10, 2015
Merged

Make suffix() zero-based #25

merged 2 commits into from
Sep 10, 2015

Conversation

richardtop
Copy link
Contributor

https://developer.apple.com/library/prerelease/ios/releasenotes/DeveloperTools/RN-Xcode/Chapters/xc7_release_notes.html#//apple_ref/doc/uid/TP40001051-CH5-SW1

"For consistency and better composition of generic code, ArraySlice indices are no longer always zero-based but map directly onto the indices of the collection they are slicing and maintain that mapping even after mutations."

@richardtop
Copy link
Contributor Author

Not sure if it is best solution, but it should persist through the times, as I avoided any new Swift-array functions

RamonGilabert added a commit that referenced this pull request Sep 10, 2015
@RamonGilabert RamonGilabert merged commit 463c76a into swift-2.0 Sep 10, 2015
@RamonGilabert RamonGilabert deleted the fix/zero-based-suffix branch September 10, 2015 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants