RangeReplaceableCollection

protocol RangeReplaceableCollection : RangeReplaceableIndexable, Collection
  • Initialize array with zeroes, ~10x faster than append for array of size 4096

    Declaration

    Swift

    public init(zeroes count: Int)

    Parameters

    count

    Number of elements in the array