Lists & Helpers
arrayFill
$arrayFill — Sets every item of an array to a value.
Sets every item of an array to a value.
Syntax
$arrayFill[array;value]
Parameters
- array (text, required) — Name of the array.
- value (text, required) — The value.
Return Value
- string.
Usage
$arrayFill[a;x]
Example
$arrayLoad[a;,;3,1,2]
$arrayFill[a;x]
$sendMessage[$arrayJoin[a;-]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.