Professional Documents
Culture Documents
1
Quick Reference to ISETL Syntax–cont.
Syntax of Funcs Type-Testers
is boolean(x); true if x is Boolean
func (<list of parameters>);
is floating(x); true if x is a floating
<statements>;
point number
end func;
is func(x); true if x is a func
The statements inside the func are executed is integer(x); true if x is an integer
as if they are a single process. A ‘return’ must is number(x); true if x is either an
be included in the statements. integer or a floating
return <expression>; point number
is om(x); true if x is undefined
evaluate the expression, the resulting value is is set(x); true if x is a set
the value returned by the func. This state- is tuple(x); true if x is a tuple
ment can only be used inside a func.