Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

second

second

type: function (subr) 
location: built-in
source file: xlinit.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(second <expr> )
        <expr>          -       a list or list expression

DESCRIPTION

SECOND returns the second element of a list or list expression. If the list is NIL, NIL is returned.

EXAMPLES

(second '(1 2 3))                       ; returns 2
(second NIL)                            ; returns NIL
                                        ;
(setq carol '(a b c))                   ; set up variable CAROL
(first carol)                           ; returns A
(second carol)                          ; returns B
(rest carol)                            ; returns (B C)
                                        ;
(setq children '(amanda ben))           ; set up variable CHILDREN
(second children)                       ; returns BEN

NOTE: This function is set to the same code as CADR.


Go to the first, previous, next, last section, table of contents.