Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
manual:chapter3:lists [2021/08/15 14:18] claudio [Operating with Lists] |
manual:chapter3:lists [2021/08/15 14:51] (current) claudio [Elements within a List] |
||
|---|---|---|---|
| Line 35: | Line 35: | ||
| will result in '' | will result in '' | ||
| - | Other common commands that are specific for lists include (look into the command reference for details | + | Other common commands that operate |
| - | [[manual: | + | |
| - | {{namespace> | + | |
| * '' | * '' | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * | + | * '' |
| - | ==== Operating | + | ==== Elements within a List ==== |
| + | |||
| + | Elements in a list can be referred to by a numeric index. The index starts at '' | ||
| + | < | ||
| + | 2: { 11 12 13 } | ||
| + | 1: 2 | ||
| + | …………………………………………………………………………………… | ||
| + | GET | ||
| + | </ | ||
| + | will result in '' | ||
| + | |||
| + | Replacing an element is done via the '' | ||
| + | |||
| + | < | ||
| + | 3: { 11 12 13 } | ||
| + | 2: 2 | ||
| + | 1: 3 | ||
| + | …………………………………………………………………………………… | ||
| + | PUT | ||
| + | </ | ||
| + | will result in '' | ||
| + | |||
| + | 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 '' | ||
| + | For example, assuming the list '' | ||
| + | ==== Procedures | ||