 unassign - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Operations : Assignment : unassign

unassign

unassign names

 Calling Sequence unassign(name1, name2, ...)

Parameters

 name1, name2, ... - names

Description

 • This procedure unassigns all the unevaluated names given as input. The value returned by unassign is NULL.
 • If any namei is of type indexed, then op(0,namei) must be either a table or a table-based array.

Examples

 > $a≔1:$
 > $a$
 ${1}$ (1)

The names passed to unassign must be unevaluated, use single quotes to enclose the names.

 > $\mathrm{unassign}\left('a'\right)$
 > $a$
 ${a}$ (2)
 > $T≔\mathrm{table}\left(\left\{\left(1,1\right)=1,\left(2,2\right)=2\right\}\right)$
 ${T}{≔}{table}{}\left(\left[\left({1}{,}{1}\right){=}{1}{,}\left({2}{,}{2}\right){=}{2}\right]\right)$ (3)
 > $\mathrm{unassign}\left('T\left[1,1\right]'\right)$
 > $T\left[1,1\right]$
 ${{T}}_{{1}{,}{1}}$ (4)
 > $\left\{\mathrm{entries}\left(T,'\mathrm{pairs}'\right)\right\}$
 $\left\{\left({2}{,}{2}\right){=}{2}\right\}$ (5)

 See Also