SE-0341: Opaque Parameter Declarations

Along with the lightweight constraint syntax, this proposal brings append(contentsOf:) to:

extension RangeReplaceableCollection {
  mutating func append(contentsOf newElements: some Sequence<Element>) 
}

... and it's pretty hard for me to imagine something more clear or minimal than that. We just want to take some sequence of our own element type.

Doug

13 Likes