Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

procedurep

procedurep( 
g_obj 
) 
=> t / nil

Description

Checks if an object is a procedure, or function, object.

A procedure may be a function object defined in SKILL or SKILL++, or system primitives. Symbols are not considered procedures even though they may have function bindings.

Arguments

g_obj

Any SKILL object.

Value Returned

t

The argument is a procedure, function, or object.

nil

The argument is not a procedure, function, or object.

Examples

(procedurep 123 )            
=> nil
(procedurep (getd 'plus))    
=> t
(procedurep 'plus)           
=> nil

Related Topics

Function and Program Structure

defun


Return to top
 ⠀
X