|Parameters||val1, a value|
val2, another value
|Purpose||Determines if val1 and val2 are equivalent in some natural sense. Appropriate for many values, but not necessarily for lists or strings.|
|Produces||A truth value: true (|
|Preconditions||Exactly two parameters (verified).|
> (eqv? 2 2) #t > (eqv? 2 2 2) eqv?: expects 2 arguments, given 3: 2 2 2 > (eqv? 2 (+ 1 1)) #t > (eqv? "hello" "hello") #f > (eqv? 'hello 'hello) #t > (eqv? 'hello (car (list 'hello 'goodbye))) #t > (eqv? null null) #t > (eqv? (cons 'a null) (cons 'a null)) #f > (eqv? 5.0 5) #f > (eqv? 5.0 5.0) #t
Disclaimer: I usually create these pages on the fly. This means that they are rarely proofread and may contain bad grammar and incorrect details. It also means that I may update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.
This page was generated by Siteweaver on Thu Feb 22 05:47:55 2001.
This page may be found at
You may validate this page's HTML.
The source was last modified Fri Feb 2 06:39:39 2001.