System Command EDIT: Difference between revisions
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
{{Commands}} | {{Commands}} | ||
{{Article footer}} |
Revision as of 01:18, 14 March 2013
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 |
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:Mouse Group {{{1}}}|{{{2}}}]]