(repeated: 5, false)produces
(a: false, false, false, false, false)
(repeated: 3, 1,2,3)produces
This macro, as well as (range:), are the means by which you can create a large array of
similar or regular data, quickly. Just as an example: you want, say, an array of several
identical, complex datamap, each of which are likely to be modified in the game,
you can use (repeated:) to make those copies easily. Or, if you want, for instance, a
lot of identical string accompanied by a lone different string, you can use (repeated:)
and add a
(a: "string")to the end.
When you already have an array variable, this is similar to simply adding that variable to itself several times. However, if the number of times is over 5, this can be much simpler to write.
An error will, of course, be produced if the number given is 0 or less, or contains a fraction.