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

xcons

xcons( 
l_list 
g_element 
) 
=> l_result

Description

Adds an element to the beginning of a list. Equivalent to cons but the order of the arguments is reversed.

Arguments

l_list

A list, which can be nil.

g_element

Element to be added to the beginning of l_list.

Value Returned

l_result

Returns a list.

Examples

xcons( '(b c) 'a ) 
=> ( a b c )

Related Topics

append1

lconc

list

ncons

tconc


Return to top
 ⠀
X