apl>" <-APL2-------------------- sam243.txt ---------------------------->
apl>" <- drop (U) with axis, page 105 ---------------------------------->
apl>L#a#3 4R'foldbeatrode'
fold
beat
rode
apl>1U[1]a
beat
rode
apl>1U[2]a
old
eat
ode
apl>1 0Ua
beat
rode
apl>0 1Ua
old
eat
ode
apl>L#q#3 2 4R'ABCDEFGH',(I8),'abcdefgh'
A B C D
E F G H
1 2 3 4
5 6 7 8
a b c d
e f g h
apl>1 -1U[2 3]q
E F G
5 6 7
e f g
apl>1 -1U[3 2]q
B C D
2 3 4
b c d
apl>L#t#'w' 'we'('wee' 'weed')'b' 'be'('bee' 'beep')
w we wee weed b be bee beep
apl>L#u#2 3Rt
w we wee weed
b be bee beep
apl>`=u
3
apl>L#q#1U[1]u
b be bee beep
apl>`=q
3
apl>Rq
1 3
apl>L#m#-1U[2]u
w we
b be
apl>`=m
2
apl>Rm
2 2
apl>L#n#-2U[2]u
w
b
apl>`=n
1
apl>Rn
2 1
apl>L#v#3 4R'abcdefghijkl'
abcd
efgh
ijkl
apl>(1U[1]v)#2 4RI8
apl>v
a b c d
1 2 3 4
5 6 7 8
apl>)off