ADD

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 non-list object, ADD will

 

attempt to execute the + command using the non-list object and each element of the list

 

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 left-shift of the P key).

Flags: Binary Integer Wordsize (–5 through –10)

Input/Output:

 

 

Level 2/Argument 1

Level 1/Argument 2

 

Level 1/Item 1

 

 

 

 

 

 

 

 

{ list1 }

{ list2 }

{ listresult }

 

 

{ list}

objnon-list

{ listresult }

 

 

objnon-list

{ 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 3-9