help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: is there an existing negate function ?


From: Drew Adams
Subject: RE: is there an existing negate function ?
Date: Mon, 9 Mar 2009 23:36:54 -0700

> is there an existing negate function ? something like this
> that I have no found ?
> 
> (defun negate ( value )
>   "negate VALUE - Invert the boolean sense of VALUE
>    0 -> 1
>    1 -> 0"
>   (if value nil t))

I'll bite. ;-)

Is `not' (aka `null') what you mean?
(not nil) -> t
(not 'non-nil) -> nil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]