Symbol Execute

From NARS2000
Revision as of 03:54, 12 April 2015 by Robert Wallick (talk | contribs) (→‎Example: examples added)
Jump to navigationJump to search

⍎ — Execute a string — Keystroke ?ALT+X — Character 0000

Usage

Examples

Valid uses of Execute(⍎) operator in conjunction with the Each(¨ or dieresis) operator:

         ⍎¨'99' '100'
   99 100
         A←'99'
         B←'100'
         ⍎¨A B
   99 100
         ⍎¨A '1' '2' '3'
   99 1 2 3
         ⍎¨ '99100'
   9 9 1 0 0
         ⍎¨A,B
   9 9 1 0 0

The Execute operator was primarily first designed to convert character representations of numbers into actual digital numbers with a floating point or integer computer storage format. It was specifically designed to generate an error message when a non-digit such as a letter(e.g. 'A' or 'B' was attempted to be converted to digital or computer binary format. In short, if you look at the code just above, you will see that yes Execute will convert char digits into numbers with the Each Operator.

The key to correctly using Execute is using the correct syntax to achieve your desired results, perhaps either

  1. Separating each argument into '1' '2' '3' '4' vectorized char arguments or
  2. First placing char data digits into vars(A and B) and then executing each without any quote chars.

See Also

NARS 2000 Lang
Tool
Bar
+ - × ÷ * ! ? |
< = >
~ § π .. ,
/ \ ¨ .
_ ¯
Second Row i j k i j k l g p r v x