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

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

is there an existing negate function ?


From: Mike Mattie
Subject: is there an existing negate function ?
Date: Mon, 9 Mar 2009 16:38:40 -0700
User-agent: Mutt/1.5.16 (2007-06-09)

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))

-- 
GnuPG Key: B9012279 is available from HKP server pgp.mit.edu

Attachment: pgpHlszXksbDn.pgp
Description: PGP signature


reply via email to

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