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

lconc

lconc( 
l_tconc 
l_list 
) 
=> l_result

Description

Uses a tconc structure to efficiently splice a list to the end of another list.

Arguments

l_tconc

A tconc structure that must initially be created using the tconc function.

l_list

List to be spliced onto the end of the tconc structure.

Value Returned

l_result

Returns l_tconc, which must be a tconc structure, with the list l_list spliced in at the end.

Examples

x = tconc(nil 1)      ; x is initialized ((1) 1)
lconc(x '(2 3 4)) ; x is now ((1 2 3 4) 4)
lconc(x nil) ; Nothing is added to x.
lconc(x '(5)) ; x is now ((1 2 3 4 5) 5)
x = car( x )   ; x is now (1 2 3 4 5)

Related Topics

append

tconc


Return to top
 ⠀
X