@Repeat()

New in 2.0

Generate an array by repeating a value N times

ArraySince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
valueThe value to repeat
countNumber of repetitions, default 1

Usage

@Repeat(arg0,arg1)

Repeat a value N times

Example:
@Repeat(hello,3)
Output:
["hello","hello","hello"]
@Repeat(arg0)

Repeat a value once

Example:
@Repeat(hello)
Output:
["hello"]
← Back to Function Reference