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.

fourth

fourth

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

SYNTAX

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

DESCRIPTION

FOURTH returns the fourth element of a list or list expression. If the list is NIL, NIL is returned.

EXAMPLES

(fourth '(1 2 3 4 5))                   ; returns 4
(fourth 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 CADDDR.


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