last_name_eval - Maple Help

type/last_name_eval

check for an expression that obeys last name evaluation rules

 Calling Sequence type(e, 'last_name_eval')

Parameters

 e - any expression

Description

 • The expression type(e, 'last_name_eval') returns the value true if the expression e conforms to last name evaluation rules, and returns false otherwise. Expressions that follow last name evaluation rules are tables, procedures, and modules. Last name evaluation rules are described in the help page last_name_eval.

Examples

 > $\mathrm{type}\left(\mathrm{eval},'\mathrm{last_name_eval}'\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\mathbf{module}\left(\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}\mathbf{end module},'\mathrm{last_name_eval}'\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(\mathrm{table}\left(\right),'\mathrm{last_name_eval}'\right)$
 ${\mathrm{true}}$ (3)
 > $\mathrm{type}\left(a+2,'\mathrm{last_name_eval}'\right)$
 ${\mathrm{false}}$ (4)
 > $\mathrm{type}\left(\left[\mathrm{sin},\mathrm{cos},\mathrm{tan}\right],'\mathrm{last_name_eval}'\right)$
 ${\mathrm{false}}$ (5)
 > $\mathrm{hastype}\left(\left[\mathrm{sin},\mathrm{cos},\mathrm{tan}\right],'\mathrm{last_name_eval}'\right)$
 ${\mathrm{true}}$ (6)