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

append1

append1( 
l_list 
g_arg 
) 
=> l_result 

Description

Adds new arguments to the end of a list.

Returns a list just like l_list with g_arg added as the last element of the list.

This is a slow operation and the functions tconc, lconc, and nconc can be used instead for adding an element or a list to the end of a list. The command cons is even better if the new list elements can be added to the beginning of the list.

Arguments

l_list

List to which g_arg is added.

g_arg

Argument to be added to the end of l_list.

Value Returned

l_result

A copy of l_list with g_arg attached to the end.

Examples

Similar to append, append1 duplicates the top-level list cells of l_list.

append1('(1 2 3) 4) 
=> (1 2 3 4)

Related Topics

append


Return to top
 ⠀
X