fill!
Syntax
fill!(obj, index, value)
Arguments
obj can be a vector, tuple, matrix, dictionary or table.
If obj is a vector, tuple or matrix, index is an integer scalar/vector; if obj is a dictionary, index is a string scalar/vector indicating dictionary keys; if obj is a table, index is a string scalar/vector indicating column names.
value is a scalar/vector.
Details
Execute the following script: obj[index]=value.
Examples
Ex 1. Create a tuple with 20 elements. Each element is a NULL of floating type.
$ x = array(ANY,20).fill!(0:20,float())
Ex 2. For a matrix m, change its (1,3) element to be 5 and its (2,4) element to be 10.
$ m = take(0,25)$5:5
$ m.fill!((1,3),5).fill!((2,4),10)