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

pairp

pairp( 
g_obj 
) 
=> t / nil

Description

Checks if an object is a cons object, that is, a non-empty list. This function is equivalent to dtpr.

The suffix p is usually added to the name of a function to indicate that it is a predicate function.

Arguments

g_obj

Any SKILL object.

Value Returned

t

g_obj is a cons object.

nil

g_obj is not a cons object.

Examples

(pairp nil)        
=> nil
(pairp 123)        
=> nil
(pairp '(1 2))     
=> t

Related Topics

listp


Return to top
 ⠀
X