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

18


setf Helper Functions

The following table describes expander functions that are available for the setf_<helper> functions. In addition to the helper functions listed in the table below, you can create your own setf helper functions.

Function Description

setf_arrayref

Returns the result of the corresponding setf operation. In the function, replace helper with arrayref.

setf_caaar

Returns the result of the corresponding setf operation. In the function, replace helper with caar.

setf_caadr

Returns the result of the corresponding setf operation. In the function, replace helper with caadr.

setf_caar

Returns the result of the corresponding setf operation. In the function, replace helper with caar.

setf_cadar

Returns the result of the corresponding setf operation. In the function, replace helper with cadar.

setf_caddr

Returns the result of the corresponding setf operation. In the function, replace helper with caddr.

setf_cadr

Returns the result of the corresponding setf operation. In the function, replace helper with cadr.

setf_car

Returns the result of the corresponding setf operation. In the function, replace helper with car.

set_cdaar

Returns the result of the corresponding setf operation. In the function, replace helper with cdaar.

setf_cdadr

Returns the result of the corresponding setf operation. In the function, replace helper with cdadr.

setf_cdar

Returns the result of the corresponding setf operation. In the function, replace helper with cdar.

setf_cddar

Returns the result of the corresponding setf operation. In the function, replace helper with cddar.

setf_cdddr

Returns the result of the corresponding setf operation. In the function, replace helper with cdddr.

setf_cddr

Returns the result of the corresponding setf operation. In the function, replace helper with cddr.

setf_cdr

Returns the result of the corresponding setf operation. In the function, replace helper with cdr.

setf_get

Returns the result of the corresponding setf operation. In the function, replace helper with get.

setf_getSG

Returns the result of the corresponding setf operation. In the function, replace helper with getSG.

setf_getSGq

Returns the result of the corresponding setf operation. In the function, replace helper with getSGq.

setf_getShellEnvVar

Returns the result of the corresponding setf operation. In the function, replace helper with getShellEnvVar.

setf_getd

Returns the result of the corresponding setf operation. In the function, replace helper with getd.

setf_getq

Returns the result of the corresponding setf operation. In the function, replace helper with getq.

setf_getqq

Returns the result of the corresponding setf operation. In the function, replace helper with getqq.

For example, (setf mysymbol.myprop 42) sets mysymbol.myprop to value 42.

setf_last

Returns the result of the corresponding setf operation. In the function, replace helper with last.

setf_leftEdge

Returns the result of the corresponding setf operation. In the function, replace helper with leftEdge.

setf_lowerLeft

Returns the result of the corresponding setf operation. In the function, replace helper with lowerLeft.

setf_nth

Returns the result of the corresponding setf operation to support setf(nth(...) ...) expressions. In the function, replace helper with nth.

For example:

myList = '(1 2 3 4); A user-defined list 
setf(nth(2  myList) 0); Set the 2nd element (zero-based) of myList 
myList is now modified: 
(1 2 0 4)
setf(nthelem(1 myList) 6); set the 1st element of myList (assuming one-based index)
myList is now modified:
(6 2 0 4)

setf_nthcdr

Returns the result of the corresponding setf operation. In the function, replace helper with nthedr.

setf_nthedr

Returns the result of the corresponding setf operation. In the function, replace helper with nthcdr.

setf_nthelem

Returns the result of the corresponding setf operation. In the function, replace helper with nthelem.

setf_rightEdge

Returns the result of the corresponding setf operation. In the function, replace helper with rightEdge.

setf_slotValue

Returns the result of the corresponding setf operation. In the function, replace helper with slotValue.

setf_topEdge

Returns the result of the corresponding setf operation. In the function, replace helper with topEdge.

setf_bottomEdge

Returns the result of the corresponding setf operation. In the function, replace helper with bottomEdge.

setf_upperRight

Returns the result of the corresponding setf operation. In the function, replace helper with upperRight.

setf_xCoord

Returns the result of the corresponding setf operation. In the function, replace helper with xCoord.

setf_yCoord

Returns the result of the corresponding setf operation. In the function, replace helper with yCoord.

Related Topics

setf

setf_<helper>


Return to top
 ⠀
X