APL2 Idioms Conventions
This page documents all conventions used in the APL2 Idiom pages:
http://aplwiki.com/PhraseBook/ToDo/Apl2Idioms
Conventions
Rank |
Type |
Use |
S - Scalar or one |
B - Boolean |
G - Graded |
item vector |
C - Character |
or Grouped |
O - One item vector |
F - Floating Point |
L - Lengths |
V - Vector |
I - Integer |
P - Positions |
M - Matrix |
N - Numeric |
U - Unique |
A - Array |
Z - Complex |
|
Examples
Name |
Description |
Name |
Description |
A,AX,AY |
General arrays |
IM |
Integer matrices |
BM |
Boolean matrices |
N,NX,NY |
Numeric vectors |
BS |
Boolean scalars |
PAV |
Position array of |
CA |
Character arrays |
|
vectors |
C,CX,CY |
Character vectors |
PS |
Position scalars |
GAF |
Graded array of |
UM |
Unique matrices |
... |
floating points |
VM |
Vector of matrices |
GI |
Graded integer vectors |
VV |
Vector of vectors |
GM |
Graded Matrix |
V,X,Y |
General vectors |
Global Variables
Name |
Contents |
Definition |
ALP |
ABCDEFGHIJKLMNOPQRSTUVWXYZ |
Upper case alphabet |
ALT |
abcdefghijklmnopqrstuvwxyz |
Alternate alphabet |
LOW |
abcdefghijklmnopqrstuvwxyz |
Lower case alphabet |
NUM |
0123456789 |
10 numerals |
SEQ |
QWERTYUIOPASDFGHJKLZXCVBNM |
Arb seq of alphabet |
LCT |
⎕AF(⍳256)+32×⎕AVεALP |
⎕AV with ALP to LOW |
UCT |
⎕AF(⍳256)-32×⎕AVεLOW |
⎕AV with LOW to ALP |
APL Wiki