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

arrayp

arrayp( 
g_value 
) 
=> t / nil

Description

Checks if an object is an array.

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

Arguments

g_value

Any data object.

Value Returned

t

If g_value is an array object.

nil

When it is not an array object.

Examples

declare(x[10])
arrayp(x)
=> t
arrayp('x) 
=> nil

Related Topics

declare


Return to top
 ⠀
X