>
|
|
| (1) |
To obtain a table entry, you can index the table directly, or use the indexing operator.
>
|
|
To assign a table entry, you can use indexing syntax, or use the indexing operator.
>
|
|
| (5) |
You can use the indexing operator to obtain a list of entries in a table, using the map2 command.
>
|
|
| (6) |
>
|
|
| (7) |
The indexing operator works with all expressions that can be indexed, not just tables. The following map statement indexes a list, a Vector, and a variable with the number 2. This returns the second entries of the list and the Vector, and the unevaluated indexed variable.
| (8) |
>
|
|
| (10) |