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.

third

third

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

SYNTAX

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

DESCRIPTION

THIRD returns the third element of a list or list expression. If the list is NIL, NIL is returned.

EXAMPLES

(third '(1 2 3 4))                      ; returns 3
(third NIL)                             ; returns NIL
                                        ;
(setq kids '(junie vickie cindy chris)) ; set up variable KIDS
(first kids)                            ; returns JUNIE
(second kids)                           ; returns VICKIE
(third kids)                            ; returns CINDY
(fourth kids)                           ; returns CHRIS
(rest kids)                             ; returns (VICKIE CINDY CHRIS)

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


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