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

getFunType

getFunType( 
u_functionObject 
) 
=> s_functionObject_type

Description

Returns a symbol denoting the function type for a given function object. Possible function types include lambda, nlambda, macro, syntax, or primop.

Arguments

u_functionObject

A function object.

Value Returned

s_functionObject_type

Possible return values include lambda, nlambda, macro, syntax, or primop.

Examples

getFunType( getd( 'sin ))        
=> lambda
getFunType( lambda( (x y) x+y ))
=> lambda
getFunType( getd( 'breakpt ))
=> nlambda
getFunType( getd( 'if ))
=> syntax
getFunType( getd( 'plus ))
=> primop

Related Topics

Function and Program Structure

defmacro


Return to top
 ⠀
X