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

arrayref

arrayref( 
g_collection 
g_index 
) 
=> g_element

Description

Returns the element in a collection that is in an array or a table of the given index.

This function is usually called implicitly using the [ ] syntax.

The syntax a[i] = b, referred to as the setarray function.

Arguments

g_collection

An array or a table.

g_index

An integer for indexing an array. An arbitrary object for indexing a table.

Value Returned

g_element

The element selected by the given index in the given collection.

Examples

a[3] 
=> 100   ;if the fourth element of the array is 100
(arrayref a 3 )
=> 100   ;same as a[3]

Related Topics

setarray


Return to top
 ⠀
X