apl>" <-APL2-------------------- sam276.txt ---------------------------->
apl>v\0 0 1 1 0
v\0 0 1 1 0
^ 59 - argument not found where expected during execute.
apl>" <- Scan (\) pp238-239 -------------------------------------------->
apl>+\1 2 3 4 5
1 3 6 10 15
apl>+\(1 2)(3 4)(5 6)
1 2 4 6 9 12
apl>V\0 0 1 1 0
0 0 1 1 1
apl>,\'ab' 'cd' 'ef'
ab abcd abcdef
apl>,\2 3RI6
1 1 2 1 2 3
4 4 5 4 5 6
apl>+\[1]L#m#3 4RI12
1 2 3 4
5 6 7 8
9 10 11 12
1 2 3 4
6 8 10 12
15 18 21 24
apl>,\[1]2 3RI6
1 2 3
1 4 2 5 3 6
apl>+\[1]L#n#2 3 4RI24
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
17 18 19 20
21 22 23 24
1 2 3 4
5 6 7 8
9 10 11 12
14 16 18 20
22 24 26 28
30 32 34 36
apl>+\[2]n
1 2 3 4
6 8 10 12
15 18 21 24
13 14 15 16
30 32 34 36
51 54 57 60
apl>X\[1]m
1 2 3 4
5 12 21 32
45 120 231 384
apl>X`\m
1 2 3 4
5 12 21 32
45 120 231 384
apl>" <- Shape (R) pp240-241 ------------------------------------------->
apl>L#a#1 2 3 'a' 'b' 4
1 2 3 ab 4
apl>Ra
6
apl>RRa
1
apl>L#b#'stand up'
stand up
apl>Rb
8
apl>L#c#3 4RI12
1 2 3 4
5 6 7 8
9 10 11 12
apl>Rc
3 4
apl>RRc
2
apl>L#d#2 3 4R(I12),_I12
1 2 3 4
5 6 7 8
9 10 11 12
-1 -2 -3 -4
-5 -6 -7 -8
-9 -10 -11 -12
apl>Rd
2 3 4
apl>RRd
3
apl>L#h#'tom' 'ed' 'hank'
tom ed hank
apl>`=h
2
apl>Rh
3
apl>R`1h
3 2 4
apl>L#q#('elsie' 'tom') 'hank' ('ed' 'bob' 'kim')
elsie tom hank ed bob kim
apl>`=q
3
apl>Rq
3
apl>RRq
1
apl>R`1q
2 4 3
apl>R`1`1q
5 3 2 3 3
apl>R'a'
.
apl>RR'a'
0
apl>L#s#`Z 2 3RI6
1 2 3
4 5 6
apl>`=s
2
apl>Rs
.
apl>R,'a'
1
apl>RR,'a'
1
apl>L#t#,`Z2 3RI6
1 2 3
4 5 6
apl>`=t
2
apl>Rt
1
apl>" <- Subtract (_) p242 --------------------------------------------->
apl>5 _ 3
2
apl>6 _ 8 .2 4j3
-2 5.8 2j-3
apl>3j4 _ 1j2
2j2
apl>-4 .5 0 _ -2 1.2 1j2
-2 -0.7 -1j-2
apl>)off