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
md5: 23bbe33713387882bd799456a9754925
Issue Description:
// Array, ArraySlice, ContiguousArray: public var capacity: Int // Dictionary, Set: public init(minimumCapacity: Int) // Dictionary, Set, RangeReplaceableCollection: public mutating func removeAll(keepingCapacity keepCapacity: Bool = false) // RangeReplaceableCollection: public mutating func reserveCapacity(_ minimumCapacity: Int)
Is it possible to support all of the above APIs in:
Arrays.swift.gyb (Array, ArraySlice, ContiguousArray)
HashedCollections.swift.gyb (Dictionary, Set)
StringCharacterView.swift
StringUnicodeScalarView.swift
For example, it might be useful to get/set the capacity of a dictionary.
Currently, only the `removeAll` method is common to all types.
The text was updated successfully, but these errors were encountered:
I'm not sure what the action item is here. Dictionary and Set behave differently from Array and other RangeReplaceableCollections.
Sorry, something went wrong.
Sorry, I didn't explain properly. I've updated the description.
This issue should be discussed on the swift-evolution mailing list.
No branches or pull requests
Additional Detail from JIRA
md5: 23bbe33713387882bd799456a9754925
Issue Description:
Is it possible to support all of the above APIs in:
Arrays.swift.gyb (Array, ArraySlice, ContiguousArray)
HashedCollections.swift.gyb (Dictionary, Set)
StringCharacterView.swift
StringUnicodeScalarView.swift
For example, it might be useful to get/set the capacity of a dictionary.
Currently, only the `removeAll` method is common to all types.
The text was updated successfully, but these errors were encountered: