System Command EDIT

From NARS2000
Jump to navigationJump to search

The )EDIT command is used to edit an APL function. There are several forms:



      )EDIT function


      )EDIT result←leftarg function rightarg;local1 local2

where function is the name of the function to edit. If the function exists, an edit window will be opened and the function will be shown in the window. If the function does not exist, a new edit window will open with an empty function other than the function name on line 0.

Function names, like variables, are case sensitive. PI, Pi, pI, and pi are four different identifiers.

If )EDIT is used with no function name specified, a new edit window will open and a blank line 0 will be presented to allow you to enter the function header. The function header can be typed in this window on line 0 (without using the prefix del () symbol.) Note that to close the edit window, you type Control-E, do not place the symbol on the function header or use it to attempt to close the function by placing it on the last line of the function; the function editor will raise a syntax error and refuse to save the function with a warning of a SYNTAX ERROR if a appears in the function header; having a within the function results in a recursive call to the function when it is executed.

The )EDIT command is treated exactly as the symbol, a used alone opens a blank window to edit a new function, followed by the name of a function opens a window containing the existing function for editing, or opens a new window to define the contents of the function.

A new function may be defined via the )EDIT function or the symbol, so that

      )EDIT  z←function5 r;⎕IO


      ∇ z←function5 r;⎕IO

are identical. Note that arguments are ignored on the )EDIT or symbol if the function is already defined; if you want to change the function header of an already defined function, you must edit it directly.

System Commands (not case sensitive)

See Also
System Commands System Variables and Functions Operators

Alt ¨ ¯ < > × ÷
Sh ~ ! @ # $ % ^ & * ( ) _ +
Key ` 1 2 3 4 5 6 7 8 9 0 - =
Alt ? § π
Sh Q W E R T Y U I O P { } |
Key q w e r t y u i o p [ ] \
Sh A S D F G H J K L : "
Key a s d f g h j k l ; '
Sh Z X C V B N M < > ?
Key z x c v b n m , . /
NARS 2000 Lang
+ - × ÷ * ! ? |
< = >
~ § π .. ,
/ \ ¨ .
_ ¯
Second Row i j k i j k l g p r v x