index - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


index

construct an indexed expression

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

index(p, rest)

Parameters

p

-

expression or name to be indexed

rest

-

(optional) expression sequence of arguments to be passed to p

Description

• 

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.

Examples

indexf,s

fs

(1)

indexg

g

(2)

indexf,s,t,u,v

fs,t,u,v

(3)

index7,4,8,9,3

8

(4)

map2index,a,b,c,d,4,2,1,3

d,b,a,c

(5)

Compatibility

• 

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