Catentation - IBM 5110 User Manual

Apl
Table of Contents

Advertisement

26
Arrays of unequal sizes can be catenated, provided that the lengths of
the coordinates not specified are the same (see the first example
'following). If the coordinates not specified have different values, an
error results (see the second example following):
10
20
30
11
AE··2 3pl0 20 30
1+ ()
50
t)()..--
40
50
60
55
BE"2
L~
(.)
1. 1
22
3:5 '+LI·
1::"1::'
,J,J
6b '77
BB
A
J
[2:1B
A
'I!~
20
30
11
10 20
:30 :I.l
22 :33
I.I.'.~
of
I.~O
~5
()
60
~5 ~::;
6b 77 BB
50
60
55
A
10
20
30
A
I
I::
:1.:] B
40
50
60
LENGTH
EI~r~OR
A , 1:1J
B
B
11
22
33
A
55
66
77
A scalar can also be catenated to an array. In the following example, a
scalar is catenated to a matrix. Notice that the scalar is repeated to
complete the coordinate:
A~2
3p10 20 30
~()
50 6()
A
1020 :30
'+0 !50 60
A ,[2]<;>9
10
:~o
~50
99
LI·(}
~)O
60
1]9
A,
[:1.::199
:to 2(} 30
,+
0
~5
0 6 ()
99 99 99
A vector can also be catenated to another array, provided the length
of the vector matches the length of the coordinate
not
specified. See
the following examples:
A,99
aB
1 0
:~~
0 :'50 99 ...
111------_
t--It-----t---+-----I
L~O
~:50
60 BB
A,[l::199 BB
LENGTH
EI~R()J~
f.'
I
t::
1.::1 99 88
A
22
33
44
66
77
88
B
22
33
44
I
66
77
88
44
88

Advertisement

Table of Contents
loading

Table of Contents