fill

Fills and returns new array with values val up to size

  1. T[] fill(T[] arr, T val)
  2. T[] fill(T val, size_t size)
    T[]
    fill
    (
    T
    )
    (
    T val
    ,
    size_t size
    )

Parameters

val T

Values to fill with

size size_t

Amount of pos to fill

Return Value

Type: T[]

Filled array

Meta