[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme 102
From: |
Jorgen Schaefer |
Subject: |
Re: Scheme 102 |
Date: |
28 Nov 2001 19:36:19 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
address@hidden writes:
> On Wed, Nov 28, 2001 at 11:45:58AM -0600, address@hidden wrote:
> >
> > hello,
> >
> > is it possible to dynamically discover the number of parameters to a
> > function?
>
> Would this be what you are looking for?
>
> | bash-2.05$ guile
> | guile> (arity display)ay)
> | 1 required and 1 optional argument.
> | guile> (arity map)
> | 2 or more arguments.
> | guile>
I guess he's looking more for the programmatic way to get that
information...
guile> (procedure-property display 'arity)
(1 1 #f)
guile> (procedure-property map 'arity)
(2 0 #t)
Greetings,
-- Jorgen
--
((email . "address@hidden") (www . "http://forcix.cx/")
(irc . "address@hidden (IRCnet)") (gpg . "1024D/028AF63C"))