Type: | Command |
|
Description: | Add List Command: Adds corresponding elements of two lists or adds a number to each of the | |
| elements of a list. |
|
| ADD executes the + command once for each of the elements in the list. If two lists are the | |
| arguments, they must have the same number of elements as ADD will execute the + command | |
| once for each corresponding pair of elements. If one argument is a | |
| attempt to execute the + command using the | |
| argument, returning the result to the corresponding position in the result. (See the + command | |
| entry to see the object combinations that are defined.) If an undefined addition is encountered, a | |
| Bad Argument Type error results. |
|
Access: | !´LIST ADD | ( ´is the |
Flags: Binary Integer Wordsize
Input/Output:
|
| Level 2/Argument 1 | Level 1/Argument 2 |
| Level 1/Item 1 |
|
|
|
|
|
|
|
| { list1 } | { list2 } | → | { listresult } |
|
| { list} | → | { listresult } | |
|
| { list} | → | { listresult } | |
| +, ΔLIST, |
|
|
|
|
See also: | ΠLIST, ΣLIST |
|
|
| |
|
|
|
|
|
|
ADDTMOD |
|
|
|
|
|
Type: | Function |
|
|
| |
Description: | Adds two expressions or values, modulo the current modulus. |
| |||
Access: | Arithmetic, !ÞMODULO |
|
|
| |
Input: | Level 2/Argument 1: The first expression. |
|
| ||
| Level 1/Argument 2: The second expression. |
|
| ||
Output: | The sum of the two expressions, modulo the current modulus. |
|
Full Command and Function Reference