complexP

Help Contents Data Structure Primitives Predicates complexP
floatP backslashedP

complexP thing
complex? thing


outputs TRUE if the input is a complex number, FALSE otherwise.

Examples:

complex? 1i		;true  ;-)
complex? 1.2+2.3e6i		;true  ;-)
complex? 1.2		;false  ;-)
complex? "1i		;false  ;-)

Reference:

floatP backslashedP