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

fboundp

fboundp( 
s_functionName 
) 
=> g_definition / nil 

Description

Returns the function binding, if defined, for a specified function name.

The function examines only the current function binding and does not check for any potential definitions from autoloading. fboundp can be considered as an alias to getd.

Arguments

s_functionName

Name to check for function binding.

Value Returned

g_definition

If the function is defined in SKILL, returns the function object that the procedure function associates with a symbol.

If the function is primitive, the binary definition is printed.

nil

No function definition exists for the specified function name.

Examples

fboundp( 'xyz ) 
=> nil ;assuming there is no function named xyz
fboundp( 'defstruct ) 
=> funobj:0x261108 ;a non-nil result
fboundp( 'cadr ) 
=> lambda:cadr
fboundp( 1 ) 
=> nil

Related Topics

Function and Program Structure


Return to top
 ⠀
X