Thanks, Neil. Sounds like an excellent answer!
Regards,
Jon
Neil Jerram wrote:
[EMAIL PROTECTED] writes:
On Sat, Jul 22, 2006 at 11:19:28AM -0500, Jon Wilson wrote:
Hi,
Is there a good way to determine the number of arguments that a given
procedure will take?
Here's a fishing rod ;-)
|
Neil Jerram <[EMAIL PROTECTED]> writes:
>
> And if you're not keen on parsing arity's output, see its definition
> in (ice-9 session) for the procedure properties that it queries to
> produce this.
(procedure-property obj 'arity) being the operative part, it gives a
list of "(required-count option
Jon Wilson <[EMAIL PROTECTED]> writes:
>
> scm_c_primitive_load ... scm_c_eval_string
Thanks, I added them.
___
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
[EMAIL PROTECTED] writes:
> On Sat, Jul 22, 2006 at 11:19:28AM -0500, Jon Wilson wrote:
>> Hi,
>> Is there a good way to determine the number of arguments that a given
>> procedure will take?
>
> Here's a fishing rod ;-)
>
> | [EMAIL PROTECTED]:~$ guile
> | guile> (apropos "arity")
> | (ice-9