PLAYGROUND (experimental)

list_create

Create a new list filled with a value
list_create(
    number, 
    value
)

Create a new list filled with a value

Syntaxe

var list = list_create(10, 0); // creates [0,0,0,0,0,0,0,0,0,0]

Arguments

NameTypeRequiredDefaultDescription
numberyes-The number of elements
valueyes-The value or list to fill with