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

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

Re: funcallable-p?


From: Pascal Bourguignon
Subject: Re: funcallable-p?
Date: Mon, 27 Aug 2007 12:16:01 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1.50 (gnu/linux)

daniel@bigwalter.net (Daniel Jensen) writes:

> Pascal Bourguignon <pjb@informatimago.com> writes:
>
>> daniel@bigwalter.net (Daniel Jensen) writes:
>>
>>> You can use `subr-arity' to test for a special form.
>>
>> (subrp (symbol-function 'sin)) --> t
>
> What are you trying to say here?
>
> (subr-arity (symbol-function 'sin))
> => (1 . 1)
>
> (subr-arity (symbol-function 'and))
> => (0 . unevalled)

Sorry, I didn't know subr-arity, and I "read" that we could test for a
subr.


subr-arity sounds nice.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
Litter box not here.
You must have moved it again.
I'll poop in the sink. 


reply via email to

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