Language Features: Difference between revisions
From NARS2000
Jump to navigationJump to search
Sudleyplace (talk | contribs) No edit summary |
Sudleyplace (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
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. | 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]]: <apll>(A<sub>1</sub> A<sub>2</sub> ... A<sub>n</sub>)←R</apll> | |||
* [[Modify Assignment]]: <apll>A<i>f</i>←R</apll> | |||
* [[Modify Strand Assignment]]: <apll>(A<sub>1</sub> A<sub>2</sub> ... A<sub>n</sub>)<i>f</i>←R</apll> | |||
* [[Function/Operator Assignment]]: <apll>A←<i>f</i></apll>, <apll>A←<i>op1</i></apll>, <apll>A←<i>op2</i></apll> | |||
* [[Sink]]: <apll>←A</apll> | |||
==Primitive functions== | |||
* [[Bracket Indexing]]: | |||
* [[Index Generator]]: | |||
* [[Index Of]]: | |||
* [[Matrix Inverse/Divide]]: | |||
==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> | |||
* [[Composition]]: <apll><i>f</i>∘<i>g</i></apll>, <apll><i>f</i>∘R</apll>, <apll>L∘<i>g</i></apll> | |||
* [[Null]]: <apll><i>f</i>⊙</apll> | |||
* [[Rank]]: <apll><i>f</i>⍤X</apll> | |||
* [[Rank with Axis]]: <apll><i>f</i>⍥[<i>X</i>]</apll> | |||
==Datatypes== | |||
* [[Infinity]]: <apll>_</apll> and <apll>¯_</apll> | |||
* [[APA|Arithmetic Progression Arrays]]: <apll>2 3 4⍴⍳24</apll> | |||
* [[Unicode|Unicode Characters]] | |||
==System Functions== | |||
* [[CR|<apll>⎕CR</apll> (Canonical Representation)]] | |||
* [[DM|<apll>⎕DM</apll> (Diagnostic Message)]] | |||
* [[DR|<apll>⎕DR</apll> (Data Representation)]] | |||
* [[ERROR|<apll>⎕ERROR</apll> (Error Signal)]] | |||
* [[SIZE|<apll>⎕SIZE</apll> (Object Size)]] | |||
* [[SYSID|<apll>⎕SYSID</apll> (System Identifier)]] | |||
* [[SYSVER|<apll>⎕SYSVER</apll> (System Version)]] | |||
* [[TC|<apll>⎕TC</apll> and related <apll>⎕TC</apll>xxx (Terminal Control)]] | |||
* [[TYPE|<apll>⎕TYPE</apll> (Prototype)]] | |||
* [[UCS|<apll>⎕UCS</apll> (Universal Character Set)]] | |||
==System Variables== | |||
* [[FC|<apll>⎕FC</apll> (Format Control)]] | |||
* [[IC|<apll>⎕IC</apll> (Indeterminate Control)]] |
Revision as of 23:03, 11 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
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)