swift icon indicating copy to clipboard operation
swift copied to clipboard

[SR-587] Move Array(count:repeatedValue:) to RangeReplaceableCollection

Open gribozavr opened this issue 10 years ago • 3 comments

Previous ID SR-587
Radar rdar://problem/24261095
Original Reporter @gribozavr
Type Improvement
Status Resolved
Resolution Done

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Improvement, AffectsABI, NewAPIRequest, StarterBug
Assignee None
Priority Medium

md5: a01a7e118c866f22c2aa25d04e9c3329

Issue Description:

Array has an initializer Array(count:repeatedValue:). It makes sense to move it to the RangeReplaceableCollection protocol.

gribozavr avatar Jan 20 '16 18:01 gribozavr

Hi, can you have a look at https://github.com/apple/swift/pull/1753 ? Did you guys clean that specific implementation in Array already?

Moximillian avatar Mar 20 '16 22:03 Moximillian

Ok, according to the PR comments the specific implementation is probably good to keep for performance.

Moximillian avatar Mar 20 '16 22:03 Moximillian