Array Concatenation and More Slices

1 Concatenate!

Complete the class, Concatenate, like this:

1) Create a new variable
V1 in which you append 60 to A.
2) Append 50 to
V1.
3) If you didn't use the
cat-operator before, use this to append 60 to A.
4) Append the set of 60 to B.
5) If you didn't use the
cat-operator before, use this to append 60 to B.
6) Append the set of 18 to v, using the
cat-operator.



1.1


2 Question

Which are the results of your newly created variables?


2.1

2.1.1 1)

The result is {50, 32, 60}


2.1.2 2)

The result is {50, 32, 60, 50}


2.1.3 3)

The result is {50, 32, 20}


2.1.4 4)

The result is {{3}, {7}, {60}}


2.1.5 5)

The result is {{3}, {7}, {20}}


2.1.6 6)

The result is {4, 9, 7, 5, 2, 18}


2.1.7 Simulation of Concatenate