[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Anti-ignore?
From: |
Emanuel Berg |
Subject: |
Re: Anti-ignore? |
Date: |
Fri, 11 Sep 2015 03:10:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
"Pascal J. Bourguignon" <pjb@informatimago.com>
writes:
>> the `ignore' function accepts any number of
>> arguments and returns nil. Is there a `canonical'
>> function which would accept any number of arguments
>> and return t? (Note: I /can/ implement it
>> myself;-), I'm just curious whether this exists -
>> I couldn't find it.)
>
> (funcall (constantly t) 'what 'ever) --> t
That yields:
(void-function constantly) in funcall
How about:
(defun always-t (&rest args) t)
I suppose this can be useful when you are submitting
a function as an argument and you want it to be `t'.
You can't just submit `t' because it isn't a function.
--
underground experts united
http://user.it.uu.se/~embe8573
- Anti-ignore?, Marcin Borkowski, 2015/09/10
- Re: Anti-ignore?, Pascal J. Bourguignon, 2015/09/10
- Re: Anti-ignore?,
Emanuel Berg <=
- Message not available