list_init
Fill a list with value
list_init(
arr,
number,
value
)
Fill a list with value
Syntaxe
var list = []; init = list_init(list, 10, 0); // put 10 "zero" in list
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
arr | yes | - | The original list | |
number | yes | - | The number of element, from zero to number-1 | |
value | yes | - | The value or list to append |