assignable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


type/assignable

check if an object can be assigned to

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, assignable)

type(expr, assignable(t))

Parameters

expr

-

any expression

t

-

type

Description

• 

The function type(expr, 'assignable') returns true if the expression expr can be assigned to; otherwise, it returns false.

• 

If the parameter t is included, it checks that expr is also of that type.

• 

An expression is assignable if one of the following is true:

  

- It is a symbol and it is not protected.

  

- It is of type indexed and its zeroth operand is either assignable or a table or an rtable.

  

- It is of type function and its zeroth operand is assignable.

Examples

typex04,assignable

true

(1)

x047

x047

(2)

typex0,assignablename

true

(3)

typefx,assignablename

false

(4)

typetrue,assignablename

false

(5)

See Also

type

type/function

type/indexed

type/name

type/rtable

type/symbol

type/table