all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "" <puzio1@excite.com>
Subject: apply or
Date: Fri,  1 Apr 2005 03:30:58 -0500 (EST)	[thread overview]
Message-ID: <20050401083058.C7EE53D01@xprdmailfe4.nwk.excite.com> (raw)




I noticed that it is not possible to feed logical connectives to "apply" as, for instance, the following examples



 (apply 'or '(t nil t nil))



 (apply 'and '(t nil t nil))



in emacs LISP because "or" and "and" are special forms as opposed to functions.  When I try these examples, I recieve the error message



 invalid-function #<subr and>



Whilst I can work around this difficulty using "member" or using "eval" and "cons", I wonder if there is a way of doing what I originally intended and directly feeding logical connectives to "apply" (or, for that matter, other functions which take a function as an argument). 





_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

             reply	other threads:[~2005-04-01  8:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-01  8:30 puzio1 [this message]
     [not found] <mailman.850.1112345921.28103.help-gnu-emacs@gnu.org>
2005-04-01  9:31 ` apply or Thien-Thi Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050401083058.C7EE53D01@xprdmailfe4.nwk.excite.com \
    --to=puzio1@excite.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.