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

subst

subst( 
g_x 
g_y 
l_arg 
) 
=> l_result

Description

Substitutes one object for another object in a list.

Arguments

g_x

Object substituted.

g_y

Object substituted for.

l_arg

A list.

Value Returned

l_result

Result of substituting g_x for all equal occurrences of g_y at all levels in l_arg.

Examples

subst( 'a 'b '(a b c) )              
=> (a a c)
subst('x 'y '(a b y (d y (e y))))  
=> (a b x (d x (e x )))

Related Topics

remd


Return to top
 ⠀
X