MutableCollection

extension MutableCollection
  • Copies min(self.count, c.count) elements from c to start of self.

    Complexity

    O(min(self.count, c.count)).

    Declaration

    Swift

    public mutating func copyElements<C>(from c: C)
    where
      C: Collection,
      Element == C.Element