Language Features: Difference between revisions
From NARS2000
Jump to navigationJump to search
Sudleyplace (talk | contribs) No edit summary |
Sudleyplace (talk | contribs) |
||
Line 11: | Line 11: | ||
* [[Index Generator]]: <apll>⍳R</apll> | * [[Index Generator]]: <apll>⍳R</apll> | ||
* [[Index Of]]: <apll>L⍳R</apll> | * [[Index Of]]: <apll>L⍳R</apll> | ||
* [[Matrix Inverse/Divide]]: | * [[Matrix Inverse/Divide]]: <apll>⌹R</apll> and <apll>L⌹R</apll> | ||
* [[Without]]: <apll>L~R</apll> | |||
==Primitive operators== | ==Primitive operators== | ||
* [[Axis]]: <apll><i>f</i>[<i>X</i>]</apll>, <apll><i>f op1</i>[<i>X</i>]</apll>, <apll><i>f op2</i>[<i>X</i>]g</apll> | * [[Axis]]: <apll><i>f</i>[<i>X</i>]</apll>, <apll><i>f op1</i>[<i>X</i>]</apll>, <apll><i>f op2</i>[<i>X</i>]g</apll> |
Revision as of 12:27, 13 April 2008
At the moment, the following sections describe only those language features that are New or Enhanced relative to the Extended APL Standard, or that deserve special comment.
Syntax
- Strand Assignment: (A1 A2 ... An)←R
- Modify Assignment: Af←R
- Modify Strand Assignment: (A1 A2 ... An)f←R
- Function/Operator Assignment: A←f, A←op1, A←op2
- Sink: ←A
Primitive functions
- Bracket Indexing:
- Index Generator: ⍳R
- Index Of: L⍳R
- Matrix Inverse/Divide: ⌹R and L⌹R
- Without: L~R
Primitive operators
- Axis: f[X], f op1[X], f op2[X]g
- Composition: f∘g, f∘R, L∘g
- Null: f⊙
- Rank: f⍤X
- Rank with Axis: f⍥[X]
Datatypes
- Infinity: _ and ¯_
- Arithmetic Progression Arrays: 2 3 4⍴⍳24
- Unicode Characters
System Functions
- ⎕CR (Canonical Representation)
- ⎕DM (Diagnostic Message)
- ⎕DR (Data Representation)
- ⎕ERROR (Error Signal)
- ⎕SIZE (Object Size)
- ⎕SYSID (System Identifier)
- ⎕SYSVER (System Version)
- ⎕TC and related ⎕TCxxx (Terminal Control)
- ⎕TYPE (Prototype)
- ⎕UCS (Universal Character Set)