Functions Documentation |
|
Name |
eq |
Syntax |
(eq exp1 [exp2 ... expn]) -> True/Nil |
Argument List |
exp1: An expression you want to check for equality to other expressions. It will be evaluated, and it's value used for the comparison
[exp2 ... expn]: More expressions to compare. |
Returns |
boolean: True if they are all equal. Nil otherwise. |
Category |
logical operator
|
Description |
Compares any amount of expressions and returns True if they are all equal, Nil if they are not. |
Example |
(eq '(a b) '(a b))
This will return True.
(eq 2 (add 1 1))
This will return True. |
Comment |
Not as useful as first appears. If you want to compare two objects by just certain properties you need to create a custom function. |