cadr


(cadr  lst)

This function returns the second element of lst.

Arguments

lst  any list or DottedPair, empty list (NIL) is also allowed

Return

the second element of the list, or NIL (for an empty list)

Example

(setq lst '(11 22 33))
(cadr lst)  22

Remarks

often used to retrieve the Y coordinate of a 2d / 3d point list;
(car) and (cdr) function combinations are supported for up to 4 levels, see car / cdr family



©  Bricsys NV. All rights reserved.