In C and C++, the !
negates the result:
if( !( a == b ) )
In S开发者_JAVA百科cheme, I found only eq?
. How do I say "not equal"? Or we have to explicitly say
(eq? #f (eq? expr expr))
Scheme has a not
, so you could do: (not (eq? expr1 expr2))
Could you not have tried guessing?
(not #f) ==> #t
精彩评论