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

lambda

lambda( 
( s_formalArgument ) 
g_expr1 ... 
) 
=> U_result

Description

Defines a function without a name. This is a syntax form.

The keywords lambda and nlambda allow functions to be defined without having names. This is useful for writing temporary or local functions. In all other respects lambda is identical to the procedure form.

Arguments

s_formalArgument

Formal argument for the function definition.

g_expr1

SKILL expression to be evaluated when the function is called.

Value Returned

U_result

A function object.

Examples

(lambda( (x y) x + y ) 5 6)
=> 11

Related Topics

Function and Program Structure


Return to top
 ⠀
X