apl>" <-APL2-------------------- sam241.txt ---------------------------->
apl>" <- disclose (`X), with axis, page 98 ----------------------------->
apl>L#z#2 4R'pa' 'ma' 'we' 'by' 'it' 'up' 'on' 'hi'
pa ma we by
it up on hi
apl>L#r#(2 4RI8) (2 4R'abcdefgh') (z)
1 2 3 4 abcd pa ma we by
5 6 7 8 efgh it up on hi
apl>L#n#`X[2 1]r
1 a pa
5 e it
2 b ma
6 f up
3 c we
7 g on
4 d by
8 h hi
apl>L#m#`X[3 1]r
1 5
a e
pa it
2 6
b f
ma up
3 7
c g
we on
4 8
d h
by hi
apl>L#p#`X[3 2]r
1 5
2 6
3 7
4 8
a e
b f
c g
d h
pa it
ma up
we on
by hi
apl>L#q#(I3) 'jump'
1 2 3 jump
apl>L#n#`X[1]q
1 j
2 u
3 m
0 p
apl>L#e#(I5) 'jump'
1 2 3 4 5 jump
apl>L#j#`X[1]e
1 j
2 u
3 m
4 p
5
apl>L#s#(2 6R'abcdefghijkl') (3 4RI12)
abcdef 1 2 3 4
ghijkl 5 6 7 8
9 10 11 12
apl>Rs
2
apl>R`1s
2 6 3 4
apl>S/(R`1s)~`ZI0
3 6
apl>L#d#`X[2 3]s
a b c d e f
g h i j k l
1 2 3 4 0 0
5 6 7 8 0 0
9 10 11 12 0 0
apl>Rd
2 3 6
apl>L#t#`Z`1'one' 'four' 'three'
one four three
apl>`=`1t
2 2 2
apl>`X[I0]t
one four three
apl>)off