repeat

Repeat an array for a specific number of times. An optional output buffer can be provided to avoid heap activity - it should be large enough to contain the entire output, otherwise the heap will be used instead.

Returns a valid slice of the output, containing the concatenated text.

T[]
repeat
(
T
)
(
const(T)[] src
,,
T[] dst = null
)

Meta