Home · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z · Numbers & Symbols

The Compleat User RPL Encyclopedia


(“Sigma List”)

{ obj1 obj2 obj3 ... }    obj1 + obj2 + obj3 + ...

HP48G/49/50 only

Keyboard Access:
  HP48G: MTH LIST
HP49/50: LS-MTH LIST
List Sum command: Adds together all the elements of a list. Same as .

When given a list of numbers, returns the sum of all the elements in a list.
When given a list of strings or lists, returns them all concatenated together.

Examples:

    
    
    
When the objects types are mixed, the results vary. Just remember that adds from left to right, the same as .
Example:
     (1+2+3 got concatenated with "4")

Note: The list must contain at least two elements, or will error out: “Error: Invalid Dimension”. If you are working with lists of numbers, a trick to allow single-element lists is: . If you even wish to allow empty lists (whose “sum” would be zero, I suppose), use . The same trick for lists of strings would be .

Note: is not the same as .
Example:
     (concatenates)
     (adds)

BYTES: 5.5
HP48G: XLIB 171 104 (caution: this is in the HP49/50)
HP49/50: XLIB 171 89 (caution: this is in the HP48G)