Question: Simplest way to add one line of an array to another array

Is this the simplest way to add one line of an array to another array?

a:=array(1..10,1..10):
b:=array(1..10,[1,2,3,4,5,6,7,8,9,8]):

for i from 1 to 10 do
    a[1,i]:=b[i]:
end do:

or to use with(ArrayTools):

for i from 1 to NumElems(b) do
    a[1,i]:=b[i]:
end do:

Can the command map be used here?

Please Wait...