repeat

Repests arr number of times.

T[]
repeat
(
T
)
(
T[] arr
,
size_t number
)

Parameters

arr T[]

the array to repeat

number size_t

the number of times to repeat

Return Value

Type: T[]

a new array containing arr number of times

Meta