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

destructuringBind

destructuringBind( 
l_variables 
l_expression 
[ g_body ] 
) 
=> g_result

Description

Enables you to bind value to variables in a list. The list of values is obtained by evaluating the l_expression. The destructuringBind macro then evaluates the g_body form.

destructuringBind does not check the correctness of l_variables.

Arguments

l_variables

A simple or a complex list. A complex list is a list that can include other lists.

You can also use @optional, @key, and @rest in this list as a procedure or a function’s argument list.

l_expression

An expression that is evaluated and its result is assigned or bound to the corresponding variable in l_variables.

g_body

A sequence of one or more expressions.

Value Returned

g_result

The evaluated result of the last expression in g_body.

Examples

Related Topics

Function and Program Structure


Return to top
 ⠀
X