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.

eql

eql

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

SYNTAX

(eql <expr1> <expr2> )
        <exprN>         -       an expression to compare

DESCRIPTION

The EQL predicate checks to see if <expr1> and <expr2> are identical (in the EQ test sense - the expression values being the same exact internal values) or if they have the same value when the expressions are numbers. T is returned if they are identical or have the same numeric value, NIL is returned otherwise.

EXAMPLES

(eql 'a 'a)                             ; returns T
(eql 1 1)                               ; returns T
(eql 1 1.0)                             ; returns NIL
(eql 1.0 1.0)                           ; returns T
(eql "a" "a")                           ; returns NIL
(eql '(a b) '(a b))                     ; returns NIL
(eql 'a 34)                             ; returns NIL
(setq a '(a b))                         ; set value of A to (A B)
(setq b a)                              ; set B to point to A's value
(setq c '(a b))                         ; set value of C to dif. (A B)
(eql a b)                               ; returns T
(eql a c)                               ; returns NIL 


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