System Function TF: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
m (remove now redundant template)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table border="1" cellpadding="5" cellspacing="0" rules="none" summary="">
<h1>⎕TF - Transfer Function</h1>
<tr>
{{BoxStart|<apll>Z←L ⎕TF R</apll>
  <td>
|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.}}
    <table border="0" cellpadding="5" cellspacing="0" summary="">
{{BoxLine|<apll>L</apll> is an integer scalar or one-element vector.}}
    <tr>
{{BoxLine|<apll>R</apll> is a character scalar or vector.}}
      <td valign="top"><apll>Z←L ⎕TF R</apll></td>
{{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.}}
      <td></td>
      <td></td>
      <td>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.</td>
    </tr>
    </table>
  </td>
</tr>
<tr>
  <td><apll>L</apll> is an integer scalar or one-element vector.</td>
</tr>
<tr>
  <td><apll>R</apll> is a character scalar or vector.</td>
</tr>
<tr>
  <td>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.</td>
</tr>
 
</table>
<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 29: Line 11:


<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}}

Latest revision as of 08:56, 24 November 2014

⎕TF - Transfer Function

Z←L ⎕TF R If R is the name of an object in the workspace, returns the transfer form of R, or if R already represents a transfer form, converts it into an object in the workspace.
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]]