type/indexable - Maple Programming Help

Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/indexable

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}{rrr}{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)