System Command EDIT
The )EDIT command is used to edit an APL function. There are two forms:
- )EDIT
and
- )EDIT function
(or)
- )EDIT leftarg←function rightarg;local1;local2 etc.
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 to 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 will result in a SYNTAX ERROR when the function 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
or
- ∇ 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) | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
)CLEAR | )CLOSE | )COPY | )DROP | )EDIT | )ERASE | )EXIT | )FNS | )FOP | )FOPS | ||||
)IN | )INASCII | )LIB | )LOAD | )NEWTAB | )NMS | )OFF | )OPEN | )OPS | )OUT | ||||
)RESET | )SAVE | )SI | )SIC | )SINL | )SYMB | )ULIB | )VARS | )XLOAD | )WSID |