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

reverse

reverse( 
l_arg 
) 
=> l_result

Description

Returns a copy of the given list with the elements in reverse order.

Because this function copies the list, it uses a lot of memory for large lists.

Arguments

l_arg

A list.

Value Returned

l_result

A new list with the elements at the top level in reverse order.

Examples

reverse( '(1 2 3) )        
=> (3 2 1)
reverse( '(a b (c d) e) )  
=> '(e (c d) b a)

Related Topics

rplaca

rplacd


Return to top
 ⠀
X