RangeReplaceableCollection

protocol RangeReplaceableCollection : Collection where Self.SubSequence : _RangeReplaceableIndexable
  • Initialize array with zeros, ~10x faster than append for array of size 4096

    Declaration

    Swift

    public init(zeros count: Int)

    Parameters

    count

    Number of elements in the array