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

# Online Help

###### All Products    Maple    MapleSim

type/indexable

check for an indexable object

 Calling Sequence type(expr, indexable) type(expr, 'indexable'(R))

Parameters

 expr - expression R - datatype of elements

Description

 • The type(expr, indexable) calling sequence returns true if expr is of type sequential, type string, or type tabular. This includes any one of the following types of indexable Maple objects.

 • The type(expr, 'indexable'(R)) calling sequence returns true if expr is a indexable Maple object containing elements of type R.

Examples

 > $A≔\mathrm{rtable}\left(\left[\left[1,2,3\right],\left[1,1,1\right],\left[5,7,9\right]\right],\mathrm{subtype}=\mathrm{Matrix},\mathrm{datatype}={\mathrm{integer}}_{2}\right)$
 ${A}{≔}\left[\begin{array}{ccc}{1}& {2}& {3}\\ {1}& {1}& {1}\\ {5}& {7}& {9}\end{array}\right]$ (1)
 > $\mathrm{type}\left(A,\mathrm{indexable}\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(A,'\mathrm{indexable}'\left({\mathrm{integer}}_{2}\right)\right)$
 ${\mathrm{true}}$ (3)

 See Also