Looking at Data Types
Numbers can be integer and real, positive and negative, and here’s the catch: APL strongly promotes the one-to-one correspondence between a symbol and its function. In most programming languages, the minus is used as a constituent of a negative literal expression (-5 is a negative 5) or a unary negation function (-X is the negation of X, not necessarily a negative number by itself). In APL, -X is the negation of X, but negative 5 is written as ¯5.
The original APL\360 doesn’t support complex numbers.
A one-dimensional numeric array—a vector—is a sequence of scalars separated by one or more spaces. Notice that the APL code traditionally starts in the seventh column. The first six positions are reserved for the output ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access