* code for complement macro, new utility
@ 2005-03-14 10:08 Surendra Singhi
0 siblings, 0 replies; only message in thread
From: Surendra Singhi @ 2005-03-14 10:08 UTC (permalink / raw)
Cc: 0
Hello,
Below is a code for, potentially useful macro for emacs, similar to the
complement function in common lisp. It takes a function of any number of
arguments and returns a function which is the complement of that function.
(defmacro complement (fn) `(lambda (&rest args) (not (apply ,fn args))))
--
Surendra Singhi
www.public.asu.edu/~sksinghi/
"O thou my friend! The prosperity of Crime is like unto the lightning, whose
traitorous brilliancies embellish the atmosphere but for an instant, in order
to hurl into death's very depths the luckless one they have dazzled." --
Marquis de Sade
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-14 10:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-14 10:08 code for complement macro, new utility Surendra Singhi
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).