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.

endp

endp

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

SYNTAX

(endp <list> )
        <list>          -       the list to check

DESCRIPTION

The ENDP predicate checks to see if <list> is an empty list. T is returned if the list is empty, NIL is returned if the <list> is not empty. The <list> has to be a valid list. An error is returned if it is not a list.

EXAMPLES

(endp '())                              ; returns T - empty list
(endp ())                               ; returns T - still empty
(endp '(a b c))                         ; returns NIL
(setq a NIL)                            ; set up a variable
(endp a)                                ; returns T - value = empty list
(endp "a")                              ; error: bad argument type - "a"
(endp 'a)                               ; error: bad argument type - A

NOTE: The ENDP predicate is different from the NULL and NOT predicates in that it requires a valid list.


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