manual:chapter3:lists

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:chapter3:lists [2021/08/15 14:42]
claudio [Operating elements within a List]
manual:chapter3:lists [2021/08/15 14:51] (current)
claudio [Elements within a List]
Line 43: Line 43:
  
  
-==== Operating elements within a List ====+==== Elements within a List ====
  
 Elements in a list can be referred to by a numeric index. The index starts at ''1'' for the first element of the list. To get an element from a list, the ''GET'' command is used: Elements in a list can be referred to by a numeric index. The index starts at ''1'' for the first element of the list. To get an element from a list, the ''GET'' command is used:
Line 65: Line 65:
 will result in ''{ 11 3 13 }'' because the object ''3'' replaced the object at index ''2'' will result in ''{ 11 3 13 }'' because the object ''3'' replaced the object at index ''2''
  
- +Elements of a list can also be accessed from within algebraic expression (read-only) by giving the list a name (store the list in a variable using ''STO'' or ''LSTO'') and then including the index in parenthesis, much like a mathematical function. 
-==== Operating with Lists ====+For example, assuming the list ''{ 11 12 13 }'' was stored in variable ''L'', evaluating ''%%'L(2)+10'%%'' will result in ''22'' as expected. 
 +==== Procedures with Lists ====
  • manual/chapter3/lists.1629063772.txt.gz
  • Last modified: 2021/08/15 14:42
  • by claudio