fill

Fills array with values val up to size if it's not 0

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

Parameters

arr T[]

Array to fill

val T

Values to fill with

Return Value

Type: T[]

Filled array

Meta