System Function AV: Difference between revisions
From NARS2000
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
<p>Because NARS2000 is based upon Unicode (i.e., UCS-2), its Atomic Vector has one element for each possible 16-bit character value. Moreover, the elements of the Atomic Vector are ordered such that, in index-origin zero, <apll>((⌈2⍟⍴⎕AV)⍴2)⊤⎕AV⍳'X'</apll> gives the bit representation of <apll>'X'</apll>.</p> | <p>Because NARS2000 is based upon Unicode (i.e., UCS-2), its Atomic Vector has one element for each possible 16-bit character value. Moreover, the elements of the Atomic Vector are ordered such that, in index-origin zero, <apll>((⌈2⍟⍴⎕AV)⍴2)⊤⎕AV⍳'X'</apll> gives the bit representation of <apll>'X'</apll>.</p> | ||
Note that ⎕AV is a ''niladic'' function, you cannot assign anything to it. | Note that ⎕AV is a ''[[niladic]]'' system function, you cannot assign anything to it. | ||
{{System Variables}} | {{System Variables}} |
Revision as of 16:46, 27 February 2013
⎕AV - Atomic Vector
⎕AV is an ISO 13751 standard niladic system function which returns the entire character set.
|
||||
Z is a character vector with 216 (65,536) elements. |
Because NARS2000 is based upon Unicode (i.e., UCS-2), its Atomic Vector has one element for each possible 16-bit character value. Moreover, the elements of the Atomic Vector are ordered such that, in index-origin zero, ((⌈2⍟⍴⎕AV)⍴2)⊤⎕AV⍳'X' gives the bit representation of 'X'.
Note that ⎕AV is a niladic system function, you cannot assign anything to it.
System Variables (A value may be assigned to these except for ⎕DM) | |||||||||
---|---|---|---|---|---|---|---|---|---|
⎕ALX | ⎕CT | ⎕DM | ⎕DT | ⎕ELX | ⎕FC | ⎕FEATURE | ⎕FPC | ⎕IC | ⎕IO |
⎕LR | ⎕LX | ⎕PP | ⎕PR | ⎕PW | ⎕RL | ⎕SA | ⎕WSID | ||
Niladic System Functions (a value cannot be assigned to these) | |||||||||
⎕A | ⎕AV | ⎕EM | ⎕ET | ⎕LC | ⎕NNAMES | ⎕NNUMS | ⎕SI | ⎕SYSID | ⎕SYSVER |
⎕T | ⎕TC | ⎕TCBEL | ⎕TCBS | ⎕TCESC | ⎕TCFF | ⎕TCHT | ⎕TCLF | ⎕TCNL | ⎕TCNUL |
⎕TS | ⎕WA | ||||||||
Monadic or dyadic system functions (a value cannot be assigned to these) | |||||||||
⎕AT | ⎕CR | ⎕DC | ⎕DFT | ⎕DL | ⎕DR | ⎕EA | ⎕EC | ⎕ERROR | ⎕ES |
⎕EX | ⎕FMT | ⎕FX | ⎕MF | ⎕NAPPEND | ⎕NC | ⎕NCREATE | ⎕NERASE | ⎕NINFO | ⎕NL |
⎕NLOCK | ⎕NREAD | ⎕NRENAME | ⎕NREPLACE | ⎕NRESIZE | ⎕NSIZE | ⎕NTIE | ⎕NUNTIE | ⎕STOP | ⎕TF |
⎕TRACE | ⎕UCS | ⎕VR | |||||||
Note that quad functions and variables (except for the ⎕A family of functions) are case insensitive |