We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attachment: Download
Xcode 9 Beta
md5: bbb1c6ef148c3d54780fb1cd79e4cb15
relates to:
Issue Description:
here are the sample
let data = Data([1, 2, 3, 4, 5, 6, 7, 8, 9]) let data2 = data.suffix(from: 2) Array(data2) // [5, 6, 7, 8, 9, 99, 199] Array(data[2...]) // [5, 6, 7, 8, 9, 99, 199] data2.indices // CountableRange(2..<9) data2.startIndex // 2 data2[0] // 3 data2[2] // 5 Array(Data(data2)) // [3, 4, 5, 6, 7, 8, 9]
The text was updated successfully, but these errors were encountered:
This looks correct. Remember the requirement that slicing a Collection gives you back a new Collection that uses the same indices.
(data2[0] should probably trap, though. @phausler?)
data2[0]
Sorry, something went wrong.
No branches or pull requests
Attachment: Download
Environment
Xcode 9 Beta
Additional Detail from JIRA
md5: bbb1c6ef148c3d54780fb1cd79e4cb15
relates to:
Issue Description:
here are the sample
The text was updated successfully, but these errors were encountered: