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
md5: e03ba826acc0bd91edbf5d0b7b77aee4
Issue Description:
All lazy adaptors forward the underestimatedCount property of Sequences excepted EnumeratedSequence:
let array = [1, 2, 3, 4, 5] let enumerated = array.enumerated() print(enumerated.underestimatedCount) // 0
Is this expected behavior? Does it create unnecessary reallocations in such code:
// array: some array let result = Array(array.enumerated().map { $0 }) // this Sequence underestimatedCount is 0
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
No branches or pull requests
swift-ci commentedAug 13, 2021
Additional Detail from JIRA
md5: e03ba826acc0bd91edbf5d0b7b77aee4
Issue Description:
All lazy adaptors forward the underestimatedCount property of Sequences excepted EnumeratedSequence:
Is this expected behavior? Does it create unnecessary reallocations in such code:
The text was updated successfully, but these errors were encountered: