5 lines
211 B
Text
5 lines
211 B
Text
var array=List(); // array of size 0
|
|
array=(0).pump(10,List().write,5).copy(); // [writable] array of size 10 filled with 5
|
|
array[3]=4;
|
|
array[3] //-->4
|
|
array+9; //append a 9 to the end, same as array.append(9)
|