index
construct an indexed expression
Calling Sequence
Parameters
Description
Examples
Compatibility
index(p, rest)
p
-
expression or name to be indexed
rest
(optional) expression sequence of arguments to be passed to p
The index(p, rest) calling sequence is equivalent to constructing the expression p[rest].
If p is an indexable expression, index(p, rest) evaluates to the result of indexing p by rest; otherwise, it simply returns the indexed expression prest. For more about indexing, see selection.
Note: Calling index with one argument is equivalent to p[], that is, p indexed with an empty index.
index⁡f,s
fs
index⁡g
g
index⁡f,s,t,u,v
fs,t,u,v
index⁡7,4,8,9,3
8
map2⁡index,a,b,c,d,4,2,1,3
d,b,a,c
The index command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
See Also
apply
index/help
indices
selection
type/indexable
type/indexed
Download Help Document