removeAll() Removes all elements from the array, preserving its allocated capacity. Declarationmutating func removeAll() Discussion