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

dtpr

dtpr( 
g_value 
) 
=> t / nil

Description

Checks whether an object is a non-empty list.

dtpr is a predicate function that is equivalent to pairp.

Arguments

g_value

An object.

Value Returned

t

Object is a non-empty list.

nil

The specified object is an empty list.

Example

dtpr( 1 ) 
=> nil
dtpr( list(1)) 
=> t

Related Topics

listp

pairp


Return to top
 ⠀
X