? fillarray;

Calculate

? fillarray;

Calculate

### fillarray

Run Example
```(%i1)array(P, 4, 3);
(%o1)                                  P
(%i2) fillarray(P,           [0.02, 0.08, 0.03, 0.04,            0.05, 0.10, 0.02, 0.07,            0.20, 0.04, 0.20, 0.15]);
(%o2)                                  P
(%i3) ```
Run Example
```arraymake (a, [1]);
(%o1)                                 a
1
(%i2)  arraymake (a, [k]);
(%o2)                                 a
k
(%i3)  arraymake (a, [i, j, 3]);
(%o3)                              a
i, j, 3
(%i4)  array (a, fixnum, 10);
(%o4)                                  a
(%i5)  fillarray (a, makelist (i^2, i, 1, 11));
(%o5)                                  a
(%i6)  arraymake (a, [5]);
(%o6)                                 a
5
(%i7)  ''%;
(%o7)             (%i8)  l : [a, b, c, d, e];
(%o8)                           [a, b, c, d, e]
(%i9)  arraymake ('l, [n]);
(%o9)                                 l
n
(%i10)  ''%, n = 3;
(%o10)            (%i11)  a2 : make_array (fixnum, 10);
(%o11)                 {Array:  #(0 0 0 0 0 0 0 0 0 0)}
(%i12)  fillarray (a2, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
(%o12)                 {Array:  #(1 2 3 4 5 6 7 8 9 10)}
(%i13)  arraymake ('a2, [8]);
(%o13)                                a2
8
(%i14)  ''%;
(%o14)            ```
Run Example
```array(P, 4, 3);
(%o1)                                  P
(%i2) fillarray(P,           [0.02, 0.08, 0.03, 0.04,            0.05, 0.10, 0.02, 0.07,            0.20, 0.04, 0.20, 0.15]);
(%o2)                                  P
(%i3) listarray(P);
(%o3) [0.02, 0.08, 0.03, 0.04, 0.05, 0.1, 0.02, 0.07, 0.2, 0.04, 0.2, 0.15,
0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15]
(%i4) P[4,3];
(%o4)                                0.15
(%i5) ```

### Related Help

Help for Fillarray