|
|
|||
|
|
| Built-in Mathematica Symbol | Tutorials »|See Also »|More About » |
| expr[[i]] or Part[expr, i] gives the i |
| expr[[-i]] counts from the end. |
| expr[[i, j, ...]] or Part[expr, i, j, ...] is equivalent to expr[[i]][[j]].... |
| expr[[{i1, i2, ...}]] gives a list of the parts i1, i2, ... of expr. |
| expr[[m;;n]] gives parts m through n. |
| expr[[m;;n;;s]] gives parts m through n in steps of s. |
| expr[[m;;]] | part m through the end | |
| expr[[;;n]] | from the beginning to part n | |
| expr[[;;,j]] | column j | |
| expr[[m1;;n1,m2;;n2]] | submatrix |
Part works with expressions of any kind, not just lists:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||