System Function TF: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<h1>⎕TF - Transfer Function</h1> | <h1>⎕TF - Transfer Function</h1> | ||
{{BoxStart|<apll>Z←L ⎕TF R</apll> | |||
|If <apll>R</apll> is the name of an object in the workspace, returns the transfer form of <apll>R</apll>, or if <apll>R</apll> already represents a transfer form, converts it into an object in the workspace.}} | |||
{{BoxLine|<apll>L</apll> is an integer scalar or one-element vector.}} | |||
{{BoxLine|<apll>R</apll> is a character scalar or vector.}} | |||
{{BoxEnd|If <apll>R</apll> is the name of an object in the workspace, <apll>Z</apll> is a character vector of the transfer form of <apll>R</apll>, or if <apll>R</apll> is a transfer form, <apll>Z</apll> is a character vector of the name of the object converted into the workspace.}} | |||
<br /> | <br /> | ||
<p>The left argument may be one of the values <apll>¯2</apll>, <apll>¯1</apll>, <apll>1</apll>, or <apll>2</apll>. The absolute value of the left argument indicates the type of transfer (<apll>1</apll> or <apll>2</apll> as described in the Extended APL Standard) produced as a result or established in the workspace. The sign of the left argument indicates whether or not the argument is translated to/from the APL2 character set; a positive left argument performs the translation, a negative argument does not. Not translating the argument allows the NARS symbols (e.g., <apll>⍬</apll>, <apll>⍤</apll>, etc.) not in the APL2 character set to be represented.</p> | <p>The left argument may be one of the values <apll>¯2</apll>, <apll>¯1</apll>, <apll>1</apll>, or <apll>2</apll>. The absolute value of the left argument indicates the type of transfer (<apll>1</apll> or <apll>2</apll> as described in the Extended APL Standard) produced as a result or established in the workspace. The sign of the left argument indicates whether or not the argument is translated to/from the APL2 character set; a positive left argument performs the translation, a negative argument does not. Not translating the argument allows the NARS symbols (e.g., <apll>⍬</apll>, <apll>⍤</apll>, etc.) not in the APL2 character set to be represented.</p> | ||
Line 31: | Line 12: | ||
<p>See [[Proposal_To_Extend_.atf_Files|Proposal To Extend .atf Files]] for an alternate view of how this function might work.</p> | <p>See [[Proposal_To_Extend_.atf_Files|Proposal To Extend .atf Files]] for an alternate view of how this function might work.</p> | ||
{{SFD|TF}} | |||
{{System Variables}} | {{System Variables}} |
Revision as of 20:41, 27 February 2013
⎕TF - Transfer Function
|
||||
L is an integer scalar or one-element vector. | ||||
R is a character scalar or vector. | ||||
If R is the name of an object in the workspace, Z is a character vector of the transfer form of R, or if R is a transfer form, Z is a character vector of the name of the object converted into the workspace. |
The left argument may be one of the values ¯2, ¯1, 1, or 2. The absolute value of the left argument indicates the type of transfer (1 or 2 as described in the Extended APL Standard) produced as a result or established in the workspace. The sign of the left argument indicates whether or not the argument is translated to/from the APL2 character set; a positive left argument performs the translation, a negative argument does not. Not translating the argument allows the NARS symbols (e.g., ⍬, ⍤, etc.) not in the APL2 character set to be represented.
Note that as a consequence of this, neither 1 ⎕TF nor 2 ⎕TF on the name of a system variable (e.g., 1 ⎕TF '⎕IO') works because the right argument is first translated into the APL2 character set which changes the quad symbol in the NARS character set into something else in the APL2 character set. Either use a left argument of ¯1 or ¯2, or a right argument which starts with ⎕AV[144+⎕IO], which is Quad in the APL2 character set back translated into the NARS character set.
See Proposal To Extend .atf Files for an alternate view of how this function might work.
Note: ⎕TF is a dyadic form system function, you cannot assign a value 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 |
See Also | ||
System Commands | System Variables and Functions | Operators |
Keyboard | ||||||||||||||
Alt+Shift | ⍪ | ≡ | ≢ | ⍒ | ⍋ | ⌽ | ⍉ | ⊖ | ⍟ | ⍱ | ⍲ | ⍠ | ⌹ | |
Alt | ⋄ | ¨ | ¯ | < | ≤ | ∅ | ≥ | > | ≠ | ∨ | ∧ | × | ÷ | |
Shift | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | _ | + | |
Key | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | |
Alt+Shift | ⍷ | √ | ⍨ | ⍸ | ⍥ | ⍣ | ⍞ | ⍬ | ⊣ | |||||
Alt | ? | ⍵ | ∊ | ⍴ | § | ↑ | ↓ | ⍳ | ○ | π | ← | → | ⊢ | |
Shift | Q | W | E | R | T | Y | U | I | O | P | { | } | | | |
Key | q | w | e | r | t | y | u | i | o | p | [ | ] | \ | |
Alt+Shift | ∫ | ∂ | ⌻ | ⍢ | ⍙ | ⍤ | ⍫ | ⌷ | ||||||
Alt | ⍺ | ⌈ | ⌊ | ∞ | ∇ | ∆ | ∘ | ‼ | ⎕ | ⍎ | ⍕ | |||
Shift | A | S | D | F | G | H | J | K | L | : | " | |||
Key | a | s | d | f | g | h | j | k | l | ; | ' | |||
Alt+Shift | ⊆ | ⊇ | χ | ⍡ | ⍭ | ⊙ | ||||||||
Alt | ⊂ | ⊃ | ∩ | ∪ | ⊥ | ⊤ | ⍦ | ⍝ | ⍀ | ⌿ | ||||
Shift | Z | X | C | V | B | N | M | < | > | ? | ||||
Key | z | x | c | v | b | n | m | , | . | / |
NARS 2000 Lang Tool Bar |
← | → | + | - | × | ÷ | * | ⍟ | ⌹ | ○ | ! | ? | √ | | | ⌈ | ⌊ | ⊥ | ⊤ | ⊣ | ⊢ | |||
≡ | ≢ | < | ≤ | = | ≥ | > | ≠ | ∨ | ∧ | ⍱ | ⍲ | ↑ | ↓ | ⊂ | ⊃ | ⌷ | ⍋ | ⍒ | |||||
⍳ | ∊ | ⍸ | ⍷ | ∪ | ∩ | ⊆ | ⊇ | ~ | § | π | .. | , | ⍪ | ⍴ | ⌽ | ⊖ | ⍉ | ||||||
/ | \ | ⌿ | ⍀ | ⊙ | ¨ | ⍨ | ⍤ | ⍣ | ⍡ | ⍥ | ⍦ | . | ∘ | ⍠ | ‼ | ⌻ | ∂ | ∫ | ⍞ | ⎕ | ⍎ | ⍕ | |
⋄ | ⍝ | ∇ | ∆ | ⍙ | _ | ⍺ | ⍵ | ¯ | ⍬ | ∞ | ∅ | ||||||||||||
Second Row | i j k | i j k l | g | p | r | v | x |
[[Category:Dyadic p[erators]]
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 |